473,387 Members | 1,766 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,387 software developers and data experts.

file uploads with progress bar

Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd
Nov 17 '05 #1
14 1939
I don't think there is an easy way to do this. There are companies that sell
components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few others as well.
visit www.asp.net, and maybe search on google to find them.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd

Nov 17 '05 #2
I don't think there is an easy way to do this. There are companies that sell
components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few others as well.
visit www.asp.net, and maybe search on google to find them.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd

Nov 17 '05 #3
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

"Marina" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
I don't think there is an easy way to do this. There are companies that sell components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few others as well. visit www.asp.net, and maybe search on google to find them.
"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd


Nov 17 '05 #4
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

"Marina" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
I don't think there is an easy way to do this. There are companies that sell components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few others as well. visit www.asp.net, and maybe search on google to find them.
"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd


Nov 17 '05 #5
Hi todd,

I agree with Marina that there may not be an easy way to implement in
ASP.NET. Since the Progress bar locate on client side, it needs to
communicate with server side to determine the progress. However, when you
upload a file, you just send a request to server side and wait for
response. There is no channel for transfering progress information during
upload.

Normally, there are two weak work around for this issue:

1. Embeding some third party ActiveX control in the web page and use it to
upload file. The third party activex control will upload the file with
sockets and display a progress bar.

2. Display a mendacious progress bar like a GIF picture, or a progress bar
like:

For i=1 to 10000

Progressbar.position= Progressbar.position+1
loop

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #6
Hi todd,

I agree with Marina that there may not be an easy way to implement in
ASP.NET. Since the Progress bar locate on client side, it needs to
communicate with server side to determine the progress. However, when you
upload a file, you just send a request to server side and wait for
response. There is no channel for transfering progress information during
upload.

Normally, there are two weak work around for this issue:

1. Embeding some third party ActiveX control in the web page and use it to
upload file. The third party activex control will upload the file with
sockets and display a progress bar.

2. Display a mendacious progress bar like a GIF picture, or a progress bar
like:

For i=1 to 10000

Progressbar.position= Progressbar.position+1
loop

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #7
Agreed, you could do that. But I don't think there would be an easy way to
actually judge the progress of the upload - as in, how much of it went up.

But yes, you could put an animated image up until the upload was complete...

"Todd Denlinger" <to**@psiware.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

"Marina" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
I don't think there is an easy way to do this. There are

companies that sell
components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few

others as well.
visit www.asp.net, and maybe search on google to find

them.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd



Nov 17 '05 #8
Agreed, you could do that. But I don't think there would be an easy way to
actually judge the progress of the upload - as in, how much of it went up.

But yes, you could put an animated image up until the upload was complete...

"Todd Denlinger" <to**@psiware.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

"Marina" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
I don't think there is an easy way to do this. There are

companies that sell
components with progress bars for uploads.

I believe SoftArtisans is one of them, and there are a few

others as well.
visit www.asp.net, and maybe search on google to find

them.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...
Ok,

I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don't know
how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something.

Anyone have any ideals or can point me to a sample?

Thanks,
Todd



Nov 17 '05 #9
Thanks Luke,

"MSFT" <lu******@online.microsoft.com> wrote in message
news:m$**************@cpmsftngxa06.phx.gbl...
Hi todd,

I agree with Marina that there may not be an easy way to implement in ASP.NET. Since the Progress bar locate on client side, it needs to communicate with server side to determine the progress. However, when you upload a file, you just send a request to server side and wait for response. There is no channel for transfering progress information during upload.

Normally, there are two weak work around for this issue:

1. Embeding some third party ActiveX control in the web page and use it to upload file. The third party activex control will upload the file with sockets and display a progress bar.

2. Display a mendacious progress bar like a GIF picture, or a progress bar like:

For i=1 to 10000

Progressbar.position= Progressbar.position+1
loop

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no rights.)

Nov 17 '05 #10
Thanks Luke,

"MSFT" <lu******@online.microsoft.com> wrote in message
news:m$**************@cpmsftngxa06.phx.gbl...
Hi todd,

I agree with Marina that there may not be an easy way to implement in ASP.NET. Since the Progress bar locate on client side, it needs to communicate with server side to determine the progress. However, when you upload a file, you just send a request to server side and wait for response. There is no channel for transfering progress information during upload.

Normally, there are two weak work around for this issue:

1. Embeding some third party ActiveX control in the web page and use it to upload file. The third party activex control will upload the file with sockets and display a progress bar.

2. Display a mendacious progress bar like a GIF picture, or a progress bar like:

For i=1 to 10000

Progressbar.position= Progressbar.position+1
loop

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no rights.)

Nov 17 '05 #11
I have tried this idea and I think it might work. but could you give a more
complete example of the code in both pages. I have been able to open the new
window but how do I close it when the upload is finished. Also what stops
the progress bar from being displayed if the form is invalid.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

Nov 17 '05 #12
I have tried this idea and I think it might work. but could you give a more
complete example of the code in both pages. I have been able to open the new
window but how do I close it when the upload is finished. Also what stops
the progress bar from being displayed if the form is invalid.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd

Nov 17 '05 #13
One more solution which might be helpful is to have a anim gif within a
layer and the form within another layer. Hide the form layer and make the
layer containing anim gif visible when the submit button is clicked. In this
case you don't need to open a pop up window.

Reddy
"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have tried this idea and I think it might work. but could you give a more complete example of the code in both pages. I have been able to open the new window but how do I close it when the upload is finished. Also what stops
the progress bar from being displayed if the form is invalid.

"Todd Denlinger" <to**@psiware.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Thanks Marina

You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">

then closing the javascript window after the upload by using

<body ms_positioning="FlowLayout" onunload="OnUnload()">

It wouldn't be a progress bar, but you'd have an animated
gif at least.

Regards,
Todd


Nov 17 '05 #14
Ok then, How do I do that. I would like to see the code to produce one of
these results.

"Reddy" <gk******@adsgroup.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
One more solution which might be helpful is to have a anim gif within a
layer and the form within another layer. Hide the form layer and make the
layer containing anim gif visible when the submit button is clicked. In this case you don't need to open a pop up window.

Reddy

Nov 17 '05 #15

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

Similar topics

7
by: OneSolution | last post by:
Hi All, Here's one thing that I don't know much about - file uploading. As part of my project, I will have to build a file manager of sorts - perhaps a document manager. Anyhow, this involves...
9
by: R. Rajesh Jeba Anbiah | last post by:
Q: How should I handle file upload? A: File uploading requires HTML form of content type "multipart/form-data". The file content has to be POSTed/submitted via the form and once the file is...
1
by: Doug Helm | last post by:
Hey, Folks: I'm writing a CGI to handle very large file uploads. I would like to include a progress bar. I think I'm about done. I have code to handle the file upload, and I think I can add...
0
by: Manuel | last post by:
I have a page that uploads a file to the user. Since the file is created on the fly and it takes a few seconds to generate, I present a "Please Wait" screen until the file is uploaded. This is the...
12
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
6
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...
5
by: LtCommander | last post by:
Hello all, 1. I am a little new to ASP.NET, so please bear with me. 2. I am trying to create a very simple website which requires an upload box (end user file sizes may be anywhere between 1MB...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.