"If I click the" Back "button, it will display the correct information in the AND form of the error label: no problem with this; it shows you the state of the page at the time you posted it.
If you do not want your Label message to keep it visible or text, the markup should be:
<asp:label id='myMsgLbl' runat='server' enableviewstate='false' visible='false/>'
- change
As far as I know, the behavior with the back button looks as expected.
Maybe you should look for solutions to turn off the back button,
or disable caching of your form (but I think this solution will be worse than your first problem)
private void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "no-cache"); Response.Expires = -1; Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
source share