session setup page

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I have a page I created that says "Session setting up, please wait...". I
use this page to setup all the information needed for the users session
(this could take 10 seconds or so).

The problem I'm having is that the page never displays.

Is there a way to get the page to display? I tried doing my setup in the
Page_Load and after do a Response.Redirect to the page they need.
 
Hi Joe,

That is not exactly an easy task to accomplish but the Microsoft Patterns
and Practices group has published some good articles to help with this. You
will need to use asynchronous programming and here are a couple of links to
help you out.

Multithreading and Asynchronous Programming in Web Applications
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/diforwc-ch06.asp

How To: Execute a Long-Running Task in a Web Application
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/diforwc-ch06.asp

HTH

-Chris
http://weblogs.austinspad.com/caustin
 
In first page you should just display the message " session setting up,
please wait". Then redirect to some other page where you need to do that
long running operation.
 
Back
Top