473,666 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Redir ect 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.Red irect instances and replacing them with anothermeans of redirecting the user. The question I have is, if thereis a way to capture the Response.Redire ct 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>T5aQ140aZUe ihMuKIgZgCA==</Id>
Nov 18 '05 #1
1 2520
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*******@dotn et247.com> wrote in message
news:OW******** ******@TK2MSFTN GP11.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.Redire ct 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.Redire ct
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.Redire ct
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>T5aQ140aZUe ihMuKIgZgCA==</Id>
Nov 18 '05 #2

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

Similar topics

4
7378
by: Ron | last post by:
I spent the last couple of days setting up a progress indicator for a private site that only does a couple uploads a day. After figuring out there was no way to set the 'upload_tmp_dir' or 'tmp_name' per session, I resigned to just doing an opendir() and finding the one file in 'upload_tmp_dir' since I knew there would never be an issue with multiple uploads occuring at the same time. if(is_dir($dir)) { if ($dh = opendir($dir)) { while...
10
2993
by: Koen Janssens | last post by:
Can anybody give me an example on how to write a progress indicator in C++ using the standard library cerr or cout? My problem is I do not know how reset the output stream to the beginning of the line, so just that information will do fine. Thanks - Koen
1
6010
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the browser back button, it loads the progress bar again. Any solution to this?
1
1610
by: Max | last post by:
I have my HTTPModule or HTTPHandler registered to process all file types (*). I have IIS configured to pass all requests to ASP.NET for this virtual directory. In some cases depending on the request parameters I may decide that I need to yield this request and I want it to be processed as if my handler was not installed there and is if ASP.NET was configured to process only *.aspx files. Is there a relatively simple way to implement...
1
1605
by: Chris | last post by:
Hi, I had asked this question on the asp website but no ans. How can I move the Atlas Progress Indicator on a page. It seems to default only to the top. I have three textbox and a button on a page. When the user clicks on the button I want three of the animated progress indicator to be at the side of each textbox because they are calling three different services on three different servers. Please advice. Thanks
1
2200
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is it possible to implement it using some other control, for example a floating window? A link to example would also be useful. Thanks, Marko Vuksanovic.
6
10093
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is it possible to implement it using some other control, for example a floating window?
1
2130
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what might be wrong? FileUpload2.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileUpload2.aspx.cs" Inherits="FileUpload2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
10
4329
by: Robertf987 | last post by:
Okay, now then. I'm hoping somebody can help here, pretty please. I want to make a progress bar/indicator on a form. At first I was just going to insert an animated gif, but I've tried and remembered that you can't put an animated gif in there, it becomes static (I did find that out in year 10 at school, I should have known, but that's just me). I can't find an ActiveX control for a progress bat that works (and isn't it true that if you move the...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8638
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6191
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.