Link to home
Start Free TrialLog in
Avatar of apb2
apb2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Splash screen on page

My web app will be sending multiple emails. this could be processor intensive and i want to display a splash screen while this is generating and sending the personnalised emails.

How do i add a splash screen while this is happening?

I tried a simple Response.Flush() before the bulk of the code, but *shrugs*

Also can i implement this to a user control and not a page? As my app is all user controls

Cheers

apb2
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Do the processor intensive part in a separate thread, and redirect to a page that refreshes itself every so often and checks whether that thread is done.
Response.Flush really doesn't work anymore like it did in ASP since ASP.net does all the processing work before it generates any html.  There are plenty of solutions available on the internet/EE that demonstrate "Please Wait" examples, here is one:

https://www.experts-exchange.com/questions/20851887/i-have-a-asp-net-page-it-retreives-data-from-the-database-It-can-take-up-to-1-min-to-display-the-page-I-want-to-show-please-wait-page-is-loading-while-the-page-is-loading-and-hide-it-after.html
Avatar of apb2

ASKER

Hi raterus

That solution is for a windows form. Have you got a solution for a web form

Thanks again
whoops!  sorry about that..Here is something that is interesting,
http://www.codeproject.com/aspnet/PleaseWaitButton.asp
ASKER CERTIFIED SOLUTION
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of apb2

ASKER

Sweet!