Skip to content
Advertisement

How to cancel _doPostBack

i have a problem that i cannot solve. i just want to click one button then trigger C# code to write entered string to sql and open other aspx web site. however after writing string to sql, page is being refreshed codes are below

C#

Advertisement

Answer

You can have the redirection in your server side code. After doing all the server side work you can add below line:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement