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

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 2030
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: L-Soft list server at SURFnet (The Netherlands) (1 | last post by:
Your message dated Tue, 19 Aug 2003 20:21:08 +0100 with subject "Re: Wicked screensaver" has been submitted to the moderator of the TEX-NL list: "Jules van Weerden, DIVA, VET, UU, NL"...
0
by: L-Soft list server at SURFnet (The Netherlands) (1 | last post by:
Your message dated Tue, 19 Aug 2003 17:21:55 --0500 with subject "Thank you!" has been submitted to the moderator of the TEX-NL list: "Jules van Weerden, DIVA, VET, UU, NL"...
0
by: L-Soft list server at clayart (1.8d) | last post by:
Your message dated Mon, 1 Mar 2004 13:14:41 -0600 with subject "Re: Your document" has been submitted to the moderator of the CLAYART list: Mel Jacobson <melpots2@PCLINK.COM>.
0
by: L-Soft list server at N.C.T.E. (1.8d) | last post by:
Your message dated Tue, 31 Aug 2004 10:29:34 +0100 with subject "Re: Your document" has been submitted to the moderator of the NEWS list: Seán Dower <sdower@NCTE.IE>.
0
by: L-Soft list server at Sun Microsystems Inc. | last post by:
The distribution of your message dated Tue, 19 Aug 2003 19:52:31 --0500 with subject "Re: Thank you!" has been postponed because the daily message limit for the DEVELOPER-AUTORESPONDER list (9500)...
0
by: University of Arkansas LISTSERV Server (14.3) | last post by:
Your message dated Mon, 25 Jul 2005 14:21:50 +0200 with subject "Status" has been submitted to the moderator of the VMESA-L list: moderator@GIZMOWORKS.COM.
0
by: University of Arkansas LISTSERV Server (14.4) | last post by:
Your message dated Thu, 20 Oct 2005 11:18:37 +0900 with subject "Returned mail: see transcript for details" has been submitted to the moderator of the ICTLIST list: Cynthia Smith <ict@UARK.EDU>.
0
by: Steve Chatham | last post by:
I am stuck on this. It ought to be a simple reason as to why this is problematic, in that it works on smaller groups of data (say under 40 records), but doesn't on larger groups of records (40+)....
0
by: L-Soft list server at (12) TBS,Inc. (1.8d) | last post by:
Your message dated Mon, 26 Dec 2005 10:15:57 +0545 with subject "Re: Mail Authentification" has been submitted to the moderator of the ASIABREAKINGNEWS list.
0
by: SLACK Incorporated LISTSERV Server (14.3) | last post by:
Your message dated Sat, 3 Feb 2007 10:40:10 -0500 with no subject has been submitted to the moderator of the IDN-L list: IDN-SysAdmin@SLACKINC.COM.
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.