IIS ASP - Resubmit w/o Browser Acceptance?

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2004 > Resubmit w/o Browser Acceptance?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Resubmit w/o Browser Acceptance?
shawn

2004-05-31, 4:52 pm

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 in
voked, 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.
TomB

2004-05-31, 4:52 pm

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" <anonymous@discussions.microsoft.com> wrote in message
news:0511AC8B-BB6C-41DD-8DC2-A6DAB2AD243A@microsoft.com...
> 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.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com