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 22:51:24
An example of the type of call I am making is in a postback
from a Button
object on the form. It might look like:

Response.Redirect("NewPage.aspx?MemberID=12",
false);

In doing some more reading, I have found that some people
have complained
of the same type of behavior. It MAY have something to do
with having the
SmartNavigation property set to true on the Page. I haven't
had access to
the server that is in the Internet Zone, and for some
reason, an attempt
to simulate the behavior using a URL like http://127.0.0.1/...
doesn't
reproduce the behavior even tho the browser thinks it is in
the Internet
Zone. I am hoping to be able to do a test of turning
SmartNavigation off
to see if that is it.

It does explain why 2 of the 20 cases I described worked.
These 2 cases
did not have SmartNavigation = true so I am optimistic.

I will report the results of the test after I do them.

Thanks for the 'Response',
Pete


On Wed, 26 Apr 2006 21:40:29 -0400, Shawn Wildermuth
<swildermuth_listsADOGUY.COM> wrote:

>So if it failing with a ? In the url, could you give us
a couple of
examples
>of what those look like.  Do the relative paths include
locational
>information (e.g. ./default.aspx instead of
default.aspx)?
>
>
>
>
>Thanks,
>
>Shawn Wildermuth
>http://adoguy.com
>C# MVP, MCSD.NET, Author and Speaker
>
>
>-----Original Message-----
>From: Discussion of building .NET applications targeted
for the Web
>[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Pete Moss
>Sent: Wednesday, April 26, 2006 9:30 PM
>To: DOTNET-WEBDISCUSS.DEVELOP.COM
>Subject: [DOTNET-WEB] Response.Redirect not working with
IE in Internet
Zone
>
>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 DevelopMentorR  http://www.develop.com
>
>View archives and manage your subscription(s) at
http://discuss.develop.com

>
>===================================
>This list is hosted by DevelopMentorŪ  http://www.develop.com
>
>View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
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 )