I have a form where users enter input. I want to prevent a different person from going back using the back button, and seeing what the first person entered.
I realize this is a problem only on the same browser etc. but that might be a problem sometimes.
I tried both Server.Transfer()
and Response.Redirect()
but both don't prevent it. I also tried setting the textboxes' (asp:TextBox
) Text to empty in the event handler for the submit button in codebehind, but it still didn't work since the transfer overrode that.
The technology it WebForms. This is a given. I'm doing everything in codebehind, and would prefer solving this from there as well, if possible.