Jan 13, 2003 #1 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.
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.
Jan 13, 2003 #2 link9 Programmer Nov 28, 2000 3,387 US 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! The answer to getting answered -- faq855-2992 Upvote 0 Downvote
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! The answer to getting answered -- faq855-2992