-1

I'm doing a form submission on my ASP.NET page. After the user has pressed submit I want them to have a completely fresh version of the page so that they cant press reload and resubmit and so its a completely clean start.

I gather that Server.Transfer() is bad, I know I could maybe post a random string in the URL. But is there a better way?


See also:

Community
  • 1
  • 1
AJM
  • 32,054
  • 48
  • 155
  • 243

1 Answers1

3

See the POST-REDIRECT-GET pattern. There is no need to add random query strings.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335