ClientScriptManager.RegisterOnSubmitStatement(Type, String, String) Method Registers an OnSubmit statement with the Page object using a type, a key, and a script literal. The statement executes when the HtmlForm is submitted. RegisterStartupScript ht…
ASP.NET postback with JavaScript Here is a complete solution Entire form tag of the asp.net page <form id="form1" runat="server"> <asp:LinkButton ID="LinkButton1" runat="server" /> <%-- included to fo…