The requirement is on click of a button, user should be shown a custom message and when the user clicks on ok. It should be redirected to another page and when the user clicks on cancel, it should not perform any action.
Assuming that there are 2 webpages in our webapplication: Default.aspx and Default2.aspx. There is a button in Default.aspx page as shown below:
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
protected void Button1_Click(object sender, EventArgs e)
Primary action is to save the document:
Now post this action, I want it to redirect the page to default.html
How do I do it?