469,643 Members | 2,064 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

Strategy for "your file is uploading" message

I'd like to display a "please wait while your file is uploading" page
immediately after someone uploads a large-ish file. I know I could
make something really slick with DHTML, or even something semi-slick
using a hidden frame to post the form to. However, both of these
approaches carry browser-compatibility risks.

It's my understanding that my server-side code doesn't execute until
the file is completely received by IIS, so I can't send any HTML back
to the client until after the upload is complete -- which is obviously
too late.

Does anyone have any cross-browser-safe methods for providing a "please
wait" message while a file is uploading?

TIA
Jared

May 26 '06 #1
5 1850
There are loads of them! Just let your fingers and mouse do the searching on
"ASP.NET Progress".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jared" wrote:
I'd like to display a "please wait while your file is uploading" page
immediately after someone uploads a large-ish file. I know I could
make something really slick with DHTML, or even something semi-slick
using a hidden frame to post the form to. However, both of these
approaches carry browser-compatibility risks.

It's my understanding that my server-side code doesn't execute until
the file is completely received by IIS, so I can't send any HTML back
to the client until after the upload is complete -- which is obviously
too late.

Does anyone have any cross-browser-safe methods for providing a "please
wait" message while a file is uploading?

TIA
Jared

May 26 '06 #2
Check out Dave and Al's chapter 3 solutions...

http://www.daveandal.net/books/6744/samples.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
===================================
"Jared" <go****@tripletreesoftware.com> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
I'd like to display a "please wait while your file is uploading" page
immediately after someone uploads a large-ish file. I know I could
make something really slick with DHTML, or even something semi-slick
using a hidden frame to post the form to. However, both of these
approaches carry browser-compatibility risks.

It's my understanding that my server-side code doesn't execute until
the file is completely received by IIS, so I can't send any HTML back
to the client until after the upload is complete -- which is obviously
too late.

Does anyone have any cross-browser-safe methods for providing a "please
wait" message while a file is uploading?

TIA
Jared

May 26 '06 #3
There is no method without using Javascript. As you said, you can't send
anything back from the server until the upload is complete.
Jared wrote:
I'd like to display a "please wait while your file is uploading" page
immediately after someone uploads a large-ish file. I know I could
make something really slick with DHTML, or even something semi-slick
using a hidden frame to post the form to. However, both of these
approaches carry browser-compatibility risks.

It's my understanding that my server-side code doesn't execute until
the file is completely received by IIS, so I can't send any HTML back
to the client until after the upload is complete -- which is obviously
too late.

Does anyone have any cross-browser-safe methods for providing a "please
wait" message while a file is uploading?

TIA
Jared

May 27 '06 #4
Jared,

If you upload the file using an asynchronous handler, you can use only
server-side code to display a status bar by checking the status of the
upload. You only have to set a meta header http-equiv to refresh the
page in an interval.

Google for "asynchronous file upload" or post a question for code.

Regards,
Tasos.

May 27 '06 #5
I neglected to mention that this is being hosted by a third party, so
the file upload must be handled natively by ASP.NET. I guess I'll just
post the upload to a hidden frame and use javascript to show a "please
wait" message. That seems to be the solution least likely to create
browser-compatibility issues.

Thanks for the suggestions.
Jared

May 31 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by L-Soft list server at SURFnet (The Netherlands) (1 | last post: by
reply views Thread by L-Soft list server at SURFnet (The Netherlands) (1 | last post: by
reply views Thread by L-Soft list server at clayart (1.8d) | last post: by
reply views Thread by L-Soft list server at N.C.T.E. (1.8d) | last post: by
reply views Thread by L-Soft list server at Sun Microsystems Inc. | last post: by
reply views Thread by University of Arkansas LISTSERV Server (14.3) | last post: by
reply views Thread by University of Arkansas LISTSERV Server (14.4) | last post: by
reply views Thread by L-Soft list server at (12) TBS,Inc. (1.8d) | last post: by
reply views Thread by SLACK Incorporated LISTSERV Server (14.3) | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.