all groups > asp.net webcontrols > december 2005 >
You're in the

asp.net webcontrols

group:

timer functionality



timer functionality AVL
12/27/2005 9:11:02 PM
asp.net webcontrols: Hi,
I'm developing an online fun game called tambola...
The requirement is as follows
Each logged user will have a ticket generated for him..
The system should display the numbers from 1 to 99 after every 10 secs....

Presently, I've used a timer control to display the numbers after every 10
secs...
The problem with the timer control is that, it's causing a postback after
every 10 secs,,, which is a hit on the server..
I want to avoid this hit on the server.. Is there any other to achieve this
functionality in .net without much load on the server

regs
Re: timer functionality Steve C. Orr [MVP, MCSD]
12/28/2005 3:17:43 PM
You should consider using client side code such as JavaScript.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

Re: timer functionality AVL
12/28/2005 8:49:01 PM
Can I get few samples for the same?

[quoted text, click to view]
Re: timer functionality Steve C. Orr [MVP, MCSD]
12/28/2005 8:53:30 PM
Here's an example of a JavaScript timer that executes JavaScript code every
N seconds:

http://www.crowes.f9.co.uk/Javascript/timer.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



[quoted text, click to view]

AddThis Social Bookmark Button