Torna al Thread
//Codice lato server
string strMessaggio = "if (confirm('Continuare?')) { document.getElementById('" + btnConferma.ClientID + "').click(); }";
Page.ClientScript.RegisterStartupScript(Page.GetType(), "confirmPagina", strMessaggio, true);
//Definizione del pulsante
<asp:Button ID="btnConferma" runat="server" Text="" style="display:none;"/>