I have a web page having asp.net button control and textbox. I want a confirm message box, when someone changes the content of textbox and click on button. If user click on yes then event of button should fire other wise nothing should happen. All I want is to implement AJAX call back, but it is not working with ASP.NET button control.
How to call server-side function from client-side in ASP.NET?
168523-Aug-2014
Sumit Kesarwani
23-Aug-2014Just add the following code to your aspx code
<asp:Button ID="btn1" OnClientClick="return confirm('sure?');" runat="server" Text="Button" />
Hope this will solve your problem.