Redirects not working...

  • Thread starter Thread starter Tim Mulholland
  • Start date Start date
T

Tim Mulholland

Anyone seen this behavior before?

On my development server, the whole site is working fine. When i upload it
to my webhost, all of the calls to Response.Redirect(...) and even the
redirects in the SmartNavigation.htm page used when Page.SmartNavigation is
true seem to not be working.

Any clues?

Thanks,

Tim Mulholland
 
Hi Tim,

From your description, you've moved your web application to a web host. It
worked well on your dev machine , however on the host machine, you found
the Respons.Redirect not work when the page has smartnavigation turned on
, yes?

Based on my experience, this seems a known issue of the
serverside(ASP.NET's smartnavigation). Would you please try the following
steps to confirm the problem:
1. Try turn off the page's smartnavigation property at design time and to
see whether it works

2. Using code to turn off the smartnavigation before call the
Response.Redirect such as below:
Page_Load(...)
{
Page.SmartNavigation = false;
Response.Redirect(....);
}

to see whether this can work.

If the above means work, we can confirm that this is exactly the issue
you're suffering on your host server. I'm not sure whether you have control
of the host server. If so, you can try reinstall the ASP.NET client
resources on the server machine by execute the
aspnet_regiis -c
command in dotnet commandline window.

If you haven't such permissions on the server or it not work and you still
need to use the smartnavigation on the page, currently we only have the
below workarounds:
1. Using the "Server.Transfer" instead of the "Response.Redirect" on those
pages which has smartnavigation turned on.

2 Programmatically turn off the smartnavigation before calling the
"Response.Redirect()", such as

Page.SmartNavigation = false;
Response.Redirect(....);

In addtion, it is informed that this issue will be fixed in the next
version of ASP.NET(Whidbey). Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top