Getting a status message during File Uploads

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
Wynte
 
this question has been answered twice today in this very newsgroup.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Wynter said:
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.
 
Back
Top