List Info

Thread: Response.Redirect not working with IE in Internet Zone




Response.Redirect not working with IE in Internet Zone
user name
2006-04-27 01:30:20
I have an odd problem in my application when I use
Response.Redirect(url,
false) where url is a relative URL. Everything is fine if
the app is
running in the Intranet Zone, but when I switch to running
in the Internet
Zone, the Response.Redirect() does nothing in an IE browser.
It works fine
in Firefox, though!

It works most of the time if there are no URL-encoded
parameters, but
never works if there is something following following a
'?' in the URL. I
have found 18 of the 20 cases with no parameters where it
works. I can't
understand why those other 2 don't work.

Does anyone know why this could be happening? I did see in
the
Response.Redirect() doc the following line:

An absolute URL (for example, http://www.contos
o.com/default.aspx) or a
relative URL (for example, default.aspx) can be specified
for the target
location but some browsers may reject a relative URL.

I wonder if the "some browsers may reject a relative
URL" may be what is
causing me the problem. Is there an IE security setting that
might allow
this to work?

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )