Timer Function in VB .Net App

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.
 
S

Sueffel

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
 
B

Bill McCarthy

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);
 
F

fripper

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Timer Confusion 1
Which Timer? 15
countdown timer 5
Timer in module 4
Timer Array 6
Timer Control query 3
Accessing VB .Net Controls from Javascript 2
Timer event 1

Top