When a user submits data in a form, I want to tell the user that the information has been saved to the database. But when I use the PostBackUrl="~/success.aspx", the data is not written. However, it works without the PostBackUrl. For example:
<asp:Button
ID="InsertButton1"
runat="server"
CausesValidation="True"
CommandName="Insert"
Text="Submit (will work)">
</asp:Button>
<asp:Button
ID="InsertButton2"
runat="server"
CausesValidation="True"
CommandName="Insert"
Text="Submit (will not work)"
PostBackUrl="~/success.aspx">
</asp:Button>
Any ideas?
<asp:Button
ID="InsertButton1"
runat="server"
CausesValidation="True"
CommandName="Insert"
Text="Submit (will work)">
</asp:Button>
<asp:Button
ID="InsertButton2"
runat="server"
CausesValidation="True"
CommandName="Insert"
Text="Submit (will not work)"
PostBackUrl="~/success.aspx">
</asp:Button>
Any ideas?