473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Response.Redirect Hangs

We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.

Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.

We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)

I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).

Has anyone else seen this?
Jan 25 '07 #1
5 4832

Are you using SmartNavigation? If you are turn it off and try again.

--
Jerry J
"we****@community.nospam" wrote:
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.

Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.

We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)

I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).

Has anyone else seen this?
Jan 25 '07 #2
Sorry, didn't see your last couple of paragraphs before my first reply.

Smart Navigation can be turned on for your whole site with a setting in the
web.config. Did you look there?

I had exactly the problem you are talking about. It was caused by smart
navigation.
--
Jerry J
"we****@community.nospam" wrote:
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.

Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.

We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)

I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).

Has anyone else seen this?
Jan 25 '07 #3
I just tried setting <pages smartNavigation="false" /in the web.config but
that doesn't seem to have helped. I can't find any settings for Smart
Navigation in any of the page directives either.
"Jerry J" wrote:
Sorry, didn't see your last couple of paragraphs before my first reply.

Smart Navigation can be turned on for your whole site with a setting in the
web.config. Did you look there?

I had exactly the problem you are talking about. It was caused by smart
navigation.
--
Jerry J
"we****@community.nospam" wrote:
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.

Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.

We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)

I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).

Has anyone else seen this?
Jan 25 '07 #4
I ran into this problem involving smart navigation. I found that smart nav
was the problem by using the View Source command in the browser after the
redirection attempt. I saw a tag with a reference to smart navigation in the
returned page. I don't remember the precise name of the tag. The problem
was fixed by turning smart nav off as you have already done. However,
looking at source of the returned page may point you toward a resolution.

I hope this helps.

Eagle.

"we****@community.nospam" wrote:
I just tried setting <pages smartNavigation="false" /in the web.config but
that doesn't seem to have helped. I can't find any settings for Smart
Navigation in any of the page directives either.
"Jerry J" wrote:
Sorry, didn't see your last couple of paragraphs before my first reply.

Smart Navigation can be turned on for your whole site with a setting in the
web.config. Did you look there?

I had exactly the problem you are talking about. It was caused by smart
navigation.
--
Jerry J
"we****@community.nospam" wrote:
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.
>
Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.
>
We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)
>
I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).
>
Has anyone else seen this?
Jan 25 '07 #5
I finally tracked down the problem with the redirects.

In some instances we were doing Response.Redirect("URL here",false) to try
and avoid the bogus System.Threading.ThreadAbort exceptions. By changing
this back to Response.Redirect("URL",True) it fixes the problem but it means
that we have to trap the ThreadAbortExceptions so that they won't bubble up.
The ThreadAbort doesn't really cause a problem, it just causes our code to
log errors that it doesn't need to. Thanks for the suggestions on what to
look for on this one though.
"Ea******@HighFlyingBirds.com" wrote:
I ran into this problem involving smart navigation. I found that smart nav
was the problem by using the View Source command in the browser after the
redirection attempt. I saw a tag with a reference to smart navigation in the
returned page. I don't remember the precise name of the tag. The problem
was fixed by turning smart nav off as you have already done. However,
looking at source of the returned page may point you toward a resolution.

I hope this helps.

Eagle.

"we****@community.nospam" wrote:
I just tried setting <pages smartNavigation="false" /in the web.config but
that doesn't seem to have helped. I can't find any settings for Smart
Navigation in any of the page directives either.
"Jerry J" wrote:
Sorry, didn't see your last couple of paragraphs before my first reply.
>
Smart Navigation can be turned on for your whole site with a setting in the
web.config. Did you look there?
>
I had exactly the problem you are talking about. It was caused by smart
navigation.
--
Jerry J
>
>
"we****@community.nospam" wrote:
>
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.

Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never redirects over to the
new page. Sometimes this will happen on the first time the button is clicked
and if you click it again it will work. And then other times things work
fine for a few clicks and then it stalls. I put in some code to write to the
event log when the Event Handler runs but before the Response.Redirect and
this code is being fired and the event is written but the page just doesn't
redirect. The server is running Server 2003 with the 2.0 Framework
installed. The website does use integrated security.
This appears to be an IE only thing because if I run the site using firefox,
there aren't any problems.

We haven't been able to duplicate these Hang's on our local development
machines (XP Pro, Visual Studio 2005, .Net Framework 2.0 app)

I've seen some other postings that said that the "Smart Navigation" setting
was the culprit but I can't find any evidence of "Smart Navigation" code in
the source of the page (but I might not be looking at the right thing).

Has anyone else seen this?
Jan 26 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
8
by: Don Miller | last post by:
I have an ASP script that is called from a PDF form to process form data. On the last line of the script I have a Response.Redirect "webpage.asp" that leads to another target page with actual HTML....
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
1
by: Milan Todorovic | last post by:
I need some help with my ASP.NET application. The central part of the application is very processing intensive page that can take up to several minutes to process the complex queries and load the...
9
by: Klem | last post by:
Hi I am expiriancing a very,very strange problem. I have an asp.net application that hangs (sometimes) when trying to execute Response.Redirect("page.aspx",true) command. What is very strange...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.