|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help needed on implementing timer functionality in web applicationHi,
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 avl You have not described the requirement as to why this "timer" submits the
form every ten seconds, and since you wrote it, I cannot guess why it does this, nor therefore how it might accomplish the same requirement without posting back to the server. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer You can lead a fish to a bicycle, but it takes a very long time, and the bicycle has to *want* to change. "AVL" <A**@discussions.microsoft.com> wrote in message news:F9207BAF-6096-4706-B0B3-F027D4035598@microsoft.com... > 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 > avl Hi,
Actually, Tambola is a game in which each player will get a ticket and the co-ordinator of the game will pick up numbers from 1 to 99 randomly.. If the picked up number happnes to be amongst the numbers being given on the tciket, then the player marks that numbers in his tciket as completed. The game ends when any one of the players will have his tciket completely marked.... We are trying to simulate this game... The players are the users of the application and system is the co-ordinator is of the game...The system should pick up each number randomly after every 10 secs........ To do so, we have used a timer which is hitting the performance of the application.. So, we are trying for another alternative Show quote "Kevin Spencer" wrote: > You have not described the requirement as to why this "timer" submits the > form every ten seconds, and since you wrote it, I cannot guess why it does > this, nor therefore how it might accomplish the same requirement without > posting back to the server. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > ..Net Developer > You can lead a fish to a bicycle, > but it takes a very long time, > and the bicycle has to *want* to change. > > "AVL" <A**@discussions.microsoft.com> wrote in message > news:F9207BAF-6096-4706-B0B3-F027D4035598@microsoft.com... > > 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 > > avl > > > |
|||||||||||||||||||||||