Delay Page Request Load

  • Thread starter Thread starter MCM14
  • Start date Start date
M

MCM14

I need to simply delay the loading of a requested page by 5 seconds. I'm not
that that familiar with threading, so I just want to confirm that what I am
doing is correct please.

In the Load Sub for the page, I have the line:

System.Threading.Thread.Sleep(5000)

I want to make sure that this will only halt the loading of this particular
page - but that other requests to the application will not be stalled. Is
that correct? Or if not, how can I do so?

Thanks.
 
I need to simply delay the loading of a requested page by 5 seconds. I'm not
that that familiar with threading, so I just want to confirm that what I am
doing is correct please.

In the Load Sub for the page, I have the line:

System.Threading.Thread.Sleep(5000)

I want to make sure that this will only halt the loading of this particular
page - but that other requests to the application will not be stalled. Is
that correct? Or if not, how can I do so?

Thanks.

I think a Timer might be a better solution for your pause.
 
I actually do want the loading of this particular page to be slow. It is a
"print view" popup, and because of some weird AJAX & popup blocker & Session
State issues, I need this page to pause loading for a few seconds to ensure
that the data gets successfully uploaded by the AJAX function.

Anyway, none of that matters for this discussion. My goal is simply to pause
the loading of this one page request without pausing any of the other
processing in the application for other page requests and processes.
 
Back
Top