Groups | Blog | Home
all groups > asp.net webcontrols > march 2004 >

asp.net webcontrols : progress bar while file uploading


MrBug
3/19/2004 8:26:57 PM
Hi


I have seen few components which show progress bar while file uploading to
web server .
Just want to know what is the logic behind this is.



Mr.Bug



Alvin Bruney [MVP]
3/21/2004 12:06:04 AM
one approach is to use a timer server side. the best approach is to put the
timer in the global.asax since a timer in the aspx page itself is routinely
a horrible idea. set a flag when the upload starts and start the timer,
change the flag when the upload ends shutting off the timer. while the timer
is going off, it examines the flag producing an appropriate message. timer
events are executed on a separate thread than the upload process so you it
won't interfer with the upload.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
[quoted text, click to view]

AddThis Social Bookmark Button