Return to Snippet

Revision: 27385
at June 4, 2010 14:03 by Shurik76


Initial Code
'Use a hidden form field "RedirectAfterSubmission" with the URL in it as a value:
'For example: Request.ServerVariables("URL")
'As soon as post form data is received and processed (stored in cookies, DB etc.),
'use the following: 

<%
Response.Redirect(Request.Form("RedirectAfterSubmission"))
%>

'As a result page will be RE-requested by GET method instead of POST
'and refreshing the page won't cause it to re-submit the data!

Initial URL


Initial Description


Initial Title
Prevent Form Re-Submission on Page Refresh

Initial Tags


Initial Language
ASP