Ask a Question related to ASP.NET General, Design and Development.
-
Chris North #1
Response.Redirect error in IE 5 only
I needed a mechanism to prevent a webform from resubmitting data if a user
presses the "Back" button following a submit.
To provide this mechanism, on Page_Load, I check a value in viewstate
against a value I stored in session state when creating the original page.
If the 2 values don't match, I do
Response.Redirect(Request.Url.AbsoluteUri, true);
So that the page is rebuilt without the submitted form data. This works
perfectly in IE6, but if I test using IE 5.0, when the back button causes
this code to fire, the browser displays a message box with the following
error :
"Internet Explorer cannot open the Internet site http://...<correct
URL>...
A redirection problem occured."
This error only occurs when the form has posted data to the server. If I
stimulate a Response.Redirect in other scenarios, it works fine.
I'm not adding anything to the response (or indeed executing any other
code) before performing the check described above.
If anybody has any ideas, it'll save me pulling anymore hair out! Thanks in
advance.
Chris North Guest
-
asp response.redirect
> FORM ACTION="Goto_yahoo" must be Goto_yahoo.asp -
Response.Flush / Response.Redirect
Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way... -
response.redirect give error http 404
Hi All, IIS.4 After I installed the latest windows update MS03- 026, MS03-024, MS03-023, Q811114, Q815021, Q816093, 814078, 811493, q329414 and... -
Response.Write and Response.Redirect
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous... -
Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...



Reply With Quote

