Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wait/sleep?

Status
Not open for further replies.

gagz

Programmer
Nov 21, 2002
333
US
Hi-

I want to do a response.redirect, but I want it to wait, say, 10 seconds... does asp.net have a wait or sleep command? I haven't found one.
Thanks.
 
You can put the main thread to sleep for a specific number of milliseconds with the following commmand:

System.Threading.Thread.Sleep(numOfMilliseconds)

It's a true sleep, too, unlike the workarounds we used to have to work with in asp classic.

All Hail .NET!
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top