Sleep or Wait functions in ASP.NET
-
Hello everyone, I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function. Thanks TheMajorRager
-
Hello everyone, I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function. Thanks TheMajorRager
Do you mean paues on the client or the server? If you're talking about pausing on the server then Thread.Sleep() might be what you're looking for. I'm sure there is a javascript equivalent for the client as well. Can you give us some more context as to what you are trying to achieve? Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/
-
Hello everyone, I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function. Thanks TheMajorRager
TheMajorRager wrote:
I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function
Not in the ASP.NET framework per se*. However, in the .NET framework (of which ASP.NET is a subset) there is
[Thread.Sleep()](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadclasssleeptopic.asp)[[^](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemthreadingthreadclasssleeptopic.asp "New Window")]
* Sorry, just being pedantic
My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
-
Hello everyone, I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function. Thanks TheMajorRager
Why would you want the server to sleep in the middle of building an HTML page for the client?? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Hello everyone, I was wondering are there any functions in ASP.NET that will allow you to pause for a few seconds like a sleep or wait function. Thanks TheMajorRager