Timer Function in VB .Net App

  • Thread starter Thread starter fripper
  • Start date Start date
F

fripper

I have a VB .Net application in which I want to put up a 10 second timer
that counts down to zero and then goes off to another page. I want to
display the count as it goes down in a textbox. I'm not sure how to do this
.... specifically should I use a VB timer control and do the countdown on the
server or should I use VBScript and do it on the client? Doing it on the
client seems to make the most sense but I don't understand how to do this in
VBScript ... I can't add a VB .Net timer control to a VBScript (at least I
don't know how). Doing this at the server is a problem because I want to
display the count on the client's machine.

Thanks to someone who can point me in the right direction.
 
There's some nice countdown scripts in JavaScript that would do the trick.
Do a Dogpile or Google search on it, and you will find all kind of scores of
stuff.

HTH
Sueffel
 
Hi,


Best to use client side script, such as JScript. You use the window.setTimeout
method, passing in the method to call when the timeout has elapsed and the
timeout in milliseconds, eg:

window.setTimeout("myMethod()", 10000);
 
Thanks guys ... big help for this newbie.


Bill McCarthy said:
Hi,


Best to use client side script, such as JScript. You use the window.setTimeout
method, passing in the method to call when the timeout has elapsed and the
timeout in milliseconds, eg:

window.setTimeout("myMethod()", 10000);
 
Back
Top