What is the best way to disallow a form to resubmit on a refresh? !IsPostBack
doesn't handle refreshes. I have tried using a bool variable that sets to true on initial submission, but it seems to be resetting every time I load the page.
I've read a bit about cookies but I'm not sure how to setup these up to pass between pages.
My setup is:
- Default.aspx (& Default.aspx.cs)
- Results.aspx (& Results.aspx.cs)
Do I setup cookies in web.config like SessionState? Is there something better to use than cookies?