Response.Redirect Fails

G

Guest

Hi

In my ASP.NET project, I have used Response.Redirect to redirect to aspx pages. Some of the Response.Redirect calls consistently fail to redirect to the desired aspx. I am using IIS on Win2K with IE 6.0 and have all the latest SPs installed

I tried re-installing IIS and my application but the results were the same

Surprisingly when I access my site using Netscape 7.0, the redirection works fine always. Also, when I installed my ASP.NET web application on another Win2K IIS machine, it worked fine from any IE from any PC

I have noticed this problem being discussed in various other newsgroups but no one has suggested any concrete solution

Any help would be appreciate

Thank
Rajes
 
G

George Ter-Saakov

1. What do you mean by Response.Redirect fails?
Does it give you an error or just does not redirect. If it does not edirect
what do you get in the browser.

2. Try to use Response.Redirect("page.aspx", true);

George.


Rajesh said:
Hi,

In my ASP.NET project, I have used Response.Redirect to redirect to aspx
pages. Some of the Response.Redirect calls consistently fail to redirect to
the desired aspx. I am using IIS on Win2K with IE 6.0 and have all the
latest SPs installed.
I tried re-installing IIS and my application but the results were the same.

Surprisingly when I access my site using Netscape 7.0, the redirection
works fine always. Also, when I installed my ASP.NET web application on
another Win2K IIS machine, it worked fine from any IE from any PC.
I have noticed this problem being discussed in various other newsgroups
but no one has suggested any concrete solution.
 
G

Guest

Hi

There is no error. The redirection does not take place. The URL in the address bar of the browser does not change to the redirected asp

I had tried Response.Redirect("page.aspx", true) but it does not make any difference

As mentioned, the same code works on another Win2K IIS installation, but on this specific installation it does not work for some redirection calls when the browser used is IE 6.0 but it works always when the browser used in Netscape 7.

Thank
Rajes
 
P

Peter O'Reilly

As mentioned, the same code works on another Win2K IIS installation, but
on this specific installation it does not work for some >redirection calls
when the browser used is IE 6.0 but it works always when the browser used in
Netscape 7.0

Response.Redirect instructs the web browser to navigate to the page you
specify as a parameter. It is up to the web browser to do so. I would
advise you to check your IE6's security and "advanced" settings.

Also, be sure that the BufferOutput property of the Response object is set
to true (which is the default) and.adding a Response.Clear() statement
before the Redirect in your code may help, too - but likely unnecessary.
 
S

Scott

Are you using smart navigation? If so you might turn that off and see if the redirect calls work.

Scott

Rajesh said:
Hi,

In my ASP.NET project, I have used Response.Redirect to redirect to aspx pages. Some of the
Response.Redirect calls consistently fail to redirect to the desired aspx. I am using IIS on Win2K
with IE 6.0 and have all the latest SPs installed.
I tried re-installing IIS and my application but the results were the same.

Surprisingly when I access my site using Netscape 7.0, the redirection works fine always. Also,
when I installed my ASP.NET web application on another Win2K IIS machine, it worked fine from any IE
from any PC.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top