Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sleep or Wait functions in ASP.NET

Sleep or Wait functions in ASP.NET

Scheduled Pinned Locked Moved C#
csharpasp-net
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheMajorRager
    wrote on last edited by
    #1

    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

    J C D R 4 Replies Last reply
    0
    • T 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

      J Offline
      J Offline
      Jared Parsons
      wrote on last edited by
      #2

      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/

      1 Reply Last reply
      0
      • T 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

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • T 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

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • T 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

            R Offline
            R Offline
            Reanalyse
            wrote on last edited by
            #5

            Do you want to wait for some external process - or for an internal process to complete. If the latter you will need to look at threading and suspending a thread until an event or trigger occurs.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups