locked
Hold the control at one point fror few seconds. RRS feed

  • Question

  • Hi
    I have sone issue with ASP.net that i want to hold the control at one point for some time. 
    Like Delay(2000) function in c++.. Is there any function in ASP.net..

    Regards
    Munish
    • Moved by nobugz Friday, September 4, 2009 9:00 PM forums.asp.net (From:Visual C# General)
    • Edited by Munish Bhargav Tuesday, September 8, 2009 6:57 AM
    Friday, September 4, 2009 8:02 AM

Answers

  • You can suspend the thread for a specified time:

    int duration = 2000;  // 2000 milliseconds
    System.Threading.Thread.Sleep(duration);
    • Marked as answer by Munish Bhargav Wednesday, September 16, 2009 5:02 AM
    Friday, September 4, 2009 10:35 AM