By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 1,952 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Strategy for "your file is uploading" message

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.