Re: Displaying status during a long File Upload

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Terence Evans (terenceevans_at_blueyonder.co.uk)
Date: 03/19/04


Date: Fri, 19 Mar 2004 18:11:53 -0000

Try doing refresh on the lable as imediately after setting the lables text
ie label1.refresh. The display should updated before anything else is done,
this has worked for me while processing a large collection of items from a
database.

Terence

"Wynter" <john.k.jones@titan.com> wrote in message
news:6B7809F1-D19C-4738-877B-CEC6955052D7@microsoft.com...
> I am relatively new to ASP.NET, but I have a question concerning my File
Upload process. The ASPX code simply builds a form and has an ONSERVERCLICK
subroutine attached to the submit button in the form. The submit subroutine
processes a PostedFile.Saveas to place the file within a directory on the
server.
>
> My problem is that during long file uploads I'd like to be able to display
a status message on the page while the process is running. Just a simple
"Uploading File... Please Wait" would be sufficient for my purposes. But
since everything is going on within the server's subroutine whatever labels
I set don't get rendered until the process is completed and returned back to
the form once more.
>
> Is there a way to simply display a message on the page when they have
clicked on the submit button? In ASP Classic this wasn't an issue. But I
beleive that ASP.NET is complicating the process here.
>
> Thanks!
> Wynter


Quantcast