Let's say the button name is confirm and the wed form is confirm.aspx (guessing that there should be an input here) Call the response object's redirect method, passing it the url of the page to which you want to redirect users The following code example shows how to redirect a page based on the contents of a local variable, userlanguage, which is set elsewhere. First, we get the response object from the base class Then, we invoke the redirect method, with a complete uri string specified as the first argument
Info the second argument to redirect is false This indicates we do not want an exception to be thrown to terminate the page. The url that the user (browser) is redirected to Well organized and easy to understand web building tutorials with lots of examples of how to use html, css, javascript, sql, python, php, bootstrap, java, xml and more. In a special case within asp.net if you want to know if the page is redirected by a specified.aspx page and not another one, just put the information in a session name and take necessary action in the receiving page_load event. Both response.redirect and server.transfer methods are used to navigate a user from one web page to another web page