Resubmit w/o Browser Acceptance?

S

shawn

I'm editing existing code, where the user selects an item on Page1.asp and clicks submit. Page1 then calls Page2.asp which subsequently runs a query to validate the data selected (passed) from Page1. If it is duplicate data, a Javascript alert box is invoked, once the user the clicks "ok" on the alert Javascript attempts to redirect back to Page1 (so the user can reselect) but this process is halted by the browser ("The page you requested was created using information you submitted in a form. blah blah blah, To resubmit your information and view this Web page, click the Refresh button. ).

Is there anyway, using ASP to go back to Page1 w/o encountering the message from the browser and then having to have the user refresh

Thanks for your time and assistance.
 
T

TomB

If you remove the javascript, your asp code can redirect using
Response.Redirect "TheOriginalPage.asp"

However, you will have to repopulate any fields that you wish to have
repopulated, and either pass the information in the querystring, or pass
some sort of identifier and repopulate based on that......

Response.Redirect "originalpage.asp?Field1=uservalue1&Field2=uservalue2"

OR
Response.redirect "originalpage.asp?UniqueID=abcdef"



shawn said:
I'm editing existing code, where the user selects an item on Page1.asp and
clicks submit. Page1 then calls Page2.asp which subsequently runs a query
to validate the data selected (passed) from Page1. If it is duplicate data,
a Javascript alert box is invoked, once the user the clicks "ok" on the
alert Javascript attempts to redirect back to Page1 (so the user can
reselect) but this process is halted by the browser ("The page you requested
was created using information you submitted in a form. blah blah blah, To
resubmit your information and view this Web page, click the Refresh
button. ).
Is there anyway, using ASP to go back to Page1 w/o encountering the
message from the browser and then having to have the user refresh?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top