472,354 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Status-Progress Bar for file download and upload to web server

Everytime I download a file from the web I get a nice animated
dialogue box that shows the size of the file, how much has been
received and the approximate remaining time. It also gives the
connection bandwidth.
I've looked in different development groups through google/groups to
find an example of C # code that would give me a similar readout.
The closest I've come is my local web developer says the Internet
Explorer is the application that does that and somehow I have to
connect into Internet Explorer to get this dialogue box.
I just want to show the user the progress of either their data upload
or the progress of their data download. I know the size of the zip
file they are loading for the upload, I don't know the size of the
file for the download.

Any suggestions would be appreciated.
I've also looked in the .NET documentation. For something so common,
it sure is hard to find. I'm stuck.
Nov 15 '05 #1
3 6799
Gary,

When Internet Explorer does this, it depends on a few things. First,
when downloading, it might not know the size of the content that it is
downloading. In this case, it makes a guess as to what the max size is, and
then works from that (at least for the progress bar on IE, for the dialog,
it doesn't show a progress bar).

Now, as far as I know, there isn't a way to show that dialog yourself.
So, to do this, you will have to create your own. You should look at the
ContentLength property to see if there is a length associated with the
download. If there is, then you can use that to determine the max value of
your progress bar. Otherwise, you will have to make a best guess based on
other factors.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gary O'Malley" <ga**********@speakeasy.net> wrote in message
news:a3**************************@posting.google.c om...
Everytime I download a file from the web I get a nice animated
dialogue box that shows the size of the file, how much has been
received and the approximate remaining time. It also gives the
connection bandwidth.
I've looked in different development groups through google/groups to
find an example of C # code that would give me a similar readout.
The closest I've come is my local web developer says the Internet
Explorer is the application that does that and somehow I have to
connect into Internet Explorer to get this dialogue box.
I just want to show the user the progress of either their data upload
or the progress of their data download. I know the size of the zip
file they are loading for the upload, I don't know the size of the
file for the download.

Any suggestions would be appreciated.
I've also looked in the .NET documentation. For something so common,
it sure is hard to find. I'm stuck.

Nov 15 '05 #2
"Everytime I download a file from the web I get a nice
animated dialogue box that shows the size of the file,
how much has been received and the approximate remaining
time. It also gives the connection bandwidth."

Yes, this is definitely IE's doing and nothing that web
developers are writing themselves. Are you trying to
mimic this feature in a windows application or your own
web app?

JER
Nov 15 '05 #3
"Jerry Negrelli" <je************@removethispartdatascientific.com > wrote in message news:<0f****************************@phx.gbl>...
"Everytime I download a file from the web I get a nice
animated dialogue box that shows the size of the file,
how much has been received and the approximate remaining
time. It also gives the connection bandwidth."

Yes, this is definitely IE's doing and nothing that web
developers are writing themselves. Are you trying to
mimic this feature in a windows application or your own
web app?

JER


Thanks for the post to Jerry and Nicholas.
Yes, this is a desktop/laptop C# application that syncs data from a
central datastore (SQL2000) using Web Services to upload a compressed
XML file with XML Schema info included. Zip file contains changed
records and new records from last upload date in xml format.
The user also downloads using a criteria of last download date and if
the record has changed since the last download.
That aside, I want to give the users in the field a pop up form,
similar to the one we all see when downloading files from the web.
Form should show file size, what has been uploaded both numeric and
progress bar format, and download speed that is occuring.
The question is, when using web services in C# what information can I
get
on what is happening during data transfer?
Are there any hooks in Web Services that I can use to either display
this information directly or is there information I can 'listen' to to
derive the information I want to display?(equations etc.)
Nov 15 '05 #4

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

Similar topics

9
by: Ian Shere | last post by:
I have a disclaimer page prior to a visitor going to my FAQ page. I want to hide the link which normally appears in the status bar from visitors seeing it. I am using the following code which...
2
by: Charles Mendell | last post by:
1. When I go to http://www.w3schools.com/js/default.asp and choose: 2. JS HTML DOM and then choose: 3. the Window object and then choose: 4. Write some text in the windows status bar ( a link)...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
1
by: chen | last post by:
We're having an internal debate about the merits & demerits of returning status codes in the output message vs exceptions to signify errors in handling a Web method. The status code camp is...
19
by: Frances | last post by:
Firefox is not respecting window.status, examples in this pg http://www.csua.berkeley.edu/~jgwang/jsform02.htm are ignored by Firefox.. why is this.. is there a solution.. thank you.. Frances
18
by: mistral | last post by:
Is there some other (more advanced) effects for status bar, other than standard Scroller Bar, TypeWriter Scroller, Flashing Bar, Decrypter, Ticker, World Clock?
4
by: Mark | last post by:
Hey folks, I'm looking at making the following query more efficient potentially using the ranking functions and I'd like some advice from the gurus. The purpose of the following is to have a...
0
by: Edwin.Madari | last post by:
updated creature running in its own thread will get you started. try it foryourself, change sleep times per your need. import os, sys, threading, time class Creature: def __init__(self,...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is...
0
by: tvnaidu | last post by:
I wrote a status page HTML code, here I have 8 port status, it prints first 7 and last status it won't print, from there onwards it won't print footer also, if I make 10 instead 8, then it prints...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.