468,242 Members | 1,767 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

HttpHandler Progress Indicator

(Type your message here)

--------------------------------
From: Dale Ragan

I am running into a problem with an HttpHandler that I have builtto show a progress image on the page getting processed. I amusing Response.Flush and as you know you cannot have aResponse.Redirect after you have flushed the buffered content tothe client. You get the cannot modify cookies after the headerhas been sent exception. I know of some ways to correct this bygoing into the individual pages and taking out theResponse.Redirect instances and replacing them with anothermeans of redirecting the user. The question I have is, if thereis a way to capture the Response.Redirect in my HttpHandler andhandle it there instead of recoding every page that will need aprogress indicator.

Thanks in advance for any input.

Dale

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>T5aQ140aZUeihMuKIgZgCA==</Id>
Nov 18 '05 #1
1 2310
Dale,

I don't think that would work any way you try this because a Redirect()
requires that HTTP Headers are sent to the client. If you're flushing and
you have previously created output the headers have already gone to the
client.

One thing you could do is dynamically add some JavaScript to the page when
you are ready to rediect. The script can change the location of the current
page. IOW, you generate some additional HTML that has this script code
inline with the body of the page which will then run as it gets to the
browser...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Dale Ragan via .NET 247" <an*******@dotnet247.com> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...
(Type your message here)

--------------------------------
From: Dale Ragan

I am running into a problem with an HttpHandler that I have built to show a
progress image on the page getting processed. I am using Response.Flush and
as you know you cannot have a Response.Redirect after you have flushed the
buffered content to the client. You get the cannot modify cookies after the
header has been sent exception. I know of some ways to correct this by
going into the individual pages and taking out the Response.Redirect
instances and replacing them with another means of redirecting the user.
The question I have is, if there is a way to capture the Response.Redirect
in my HttpHandler and handle it there instead of recoding every page that
will need a progress indicator.

Thanks in advance for any input.

Dale

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>T5aQ140aZUeihMuKIgZgCA==</Id>
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ron | last post: by
10 posts views Thread by Koen Janssens | last post: by
1 post views Thread by Chris | last post: by
1 post views Thread by Marko Vuksanovic | last post: by
6 posts views Thread by Marko Vuksanovic | last post: by
1 post views Thread by Marko Vuksanovic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.