Delay Page Request Load

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.
 
H

Harv

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.
 
M

MCM14

Why would a Timer be better? Does pausing the thread do something
particularly negative?
 
M

MCM14

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top