473,412 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 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 6895
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
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...

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.