Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2005, 09:58 AM
Registered User
 
Join Date: Mar 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to bhuvanagiri
Default status of uploading with progress bar

Hi
     I am uploading a file to the server. If the file size is larger, it takes more time,Hence clients may thing some thing is wrong with the site. To over come this i need to display a progressbar with uploading status.

Thanks if any advice.....
:)
 
Old April 6th, 2005, 07:28 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.aspnetpro.com/NewsletterA...200308bm_l.asp
 
Old April 10th, 2005, 05:07 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The problem with that article is that it discusses a page that takes a long time to load. The problem the poster is posing is the case where the user is uploading a large file.

Unfortunately, there's not way to tell the browser about the status of such an action because of what's happening. When you upload a file thru a Http POST action, the browser's HTTP request contains the binary data for the file being uploaded. The server won't do anything with the file (or request for that matter) until the request has been completely received. I don't think there is any way around this problem.

-Peter
 
Old April 11th, 2005, 03:06 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

another preloader,
http://www.codeproject.com/aspnet/NicsBar.asp

EDIT:link edited.
 
Old April 13th, 2005, 10:03 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

mehdi,

Again, this is not what the poster is looking for. This is a "your request is being processed, please wait" indicator. Usually how this works is you draw a simple page with a graphic to indicate "progress" and then you use a meta tag to refresh to the page that is actually going to do the work. The second page requested is what takes time.

The OP is asking "how can I show the user the progress of their file upload?" In technical terms they are looking to provide the user feedback on the status of their browser posting the HTTP request to the server. During that process the server isn't even involved, apart from sitting there receiving the bytes of the request as it's uploaded. So the server can't tell the browser the status because it hasn't even started to generate a result because it's waiting for the incoming HTTP post request to finish coming in.
 
Old April 27th, 2005, 07:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

This could be done as a client side control that actaully uploads to a webservice, rather than using the standard posting method. Then the client side control can show progress- much like with Windows Update... Of course, if you want it to be cross-browser you need to go to Java.


Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying progress bar while uploading images oluseyi ASP.NET 2.0 Professional 1 March 15th, 2007 11:14 AM
progress bar on status strip malikabid VB How-To 2 September 9th, 2006 03:28 AM
progress bar treasacrowe Classic ASP Basics 11 February 11th, 2005 10:47 AM
Progress Bar kevind23 Classic ASP Basics 1 May 24th, 2004 08:00 AM
Progress Bar BSkelding ASP.NET 1.0 and 1.1 Basics 3 May 4th, 2004 04:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.