How to implement a simple delay/wait in ASP ?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to implement a simple delay/wait in ASP ?

  1. #1
    Bigsmurf Guest

    Default How to implement a simple delay/wait in ASP ?

    Hi,<BR><BR>Could anyone tell me how I can insert some kind of delay in ASP, which will be used to display a "flash" error message in a form, indicating that the field is blank and can&#039t be.<BR><BR>Or is there any other way to display such a short message and then erase it and redisplay the page?<BR><BR>Thanks for any help...

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: How to implement a simple delay/wait in ASP ?

    Hello! Check out this free component:<BR><BR>http://www.serverobjects.com/products.htm#waitfor<BR><BR>It will allow your ASP page to wait for a specified number of seconds before continuing...<BR><BR>Happy Programming!

  3. #3
    Join Date
    Dec 1969
    Posts
    50

    Default RE: How to implement a simple delay/wait in ASP ?

    Great Info..

  4. #4
    csudhakar Guest

    Default RE: How to implement a simple delay/wait in ASP ?

    I want to suspend my asp program for some time. how should i do that ? I visual basic there is a evquivalent function "DoEvents" I want some thing equivalent for "DoEvents" U mail also mail the soluction my id is dhakar999@yahoo.com.


  5. #5
    Join Date
    Dec 1969
    Posts
    2

    Default RE: How to implement a simple delay/wait in ASP ?

    Hows about....<BR><BR> Sub Sleep(tmpSeconds)<BR> Dim dtmOne,dtmTwo<BR> dtmOne = Now()<BR> While DateDiff("s",dtmOne,dtmTwo) &#060; tmpSeconds<BR> dtmTwo = Now()<BR> Wend<BR> End Sub<BR><BR>this has the added advantage of not needing you to install any components or anything.

  6. #6
    Join Date
    Dec 1969
    Posts
    3,961

    Default RE: How to implement a simple delay/wait in ASP ?

    It&#039;ll hang the server in 100% processor utilisation until the wait has finished, not ideal on a site with more than one user...

  7. #7
    Join Date
    Dec 1969
    Posts
    96,118

    Default ''not ideal'' ?

    How about purely incredibly stupidly bad???<BR><BR>

  8. #8
    Join Date
    Dec 1969
    Posts
    10,852

    Default My favorite piece of sleep code...

    Can be found here.<BR><BR>http://www.aspmessageboard.com/forum/showMessage.asp?F=20&M=235854&P=1

  9. #9
    Join Date
    Dec 1969
    Posts
    1,424

    Default LOL...

    I&#039;d probably write that differently now, but the fundamentals would remain unchanged :-)

  10. #10
    Join Date
    Dec 1969
    Posts
    96,118

    Default Ehhh...it wouldn't compile, you know...

    There&#039;s no END IF for the IF.<BR><BR>So since it wouldn&#039;t compile, it would never run, and now you&#039;ll never be able to sleep.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •