title: how to give prompt message & after that redirecting page to another in button click event in asp.net
body: <p>Hi 
  I have one submit button to submit the page. When i click on submit button then it should give prompt message like "are you sure to submit that page really" if yes then it should redirect the another page.
  I used code as follows:</p>
  
  <pre><code>RegisterStartupScript("myAlert", "&lt;script&gt;alert('Are you sure about to submit the test?')&lt;/script&gt;");
  Response.Redirect("Result.aspx");
  </code></pre>
  
  <p>But its directly redirecting the page without promting to user with message.
  How its possible?
  Asp.net c#</p>