Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: timers

Reply
Thread Tools

Re: timers

 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      12-08-2003
Server side timers aren't much good with ASP.NET pages because they only
exist long enough for the HTML to be generated and sent to the client
(usually a few milliseconds.)
Therefore you'll probably find a client side timer more useful, which
executes in the user's browser and therefore keeps going as long as the page
is open in the user's browser.

Here's an example for you:
http://www.crowes.f9.co.uk/Javascript/timer.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com




"Stephen McCrea" <> wrote in message
news:%...
> I am new to asp. I tried implementing a timer in a System.Web.UI.Page
> derived class to perform periodic refreshes of the interface and calls to

a
> web service but it does not seem to work as I expected. I could not set

its
> SynchronizingObject field.
>
> When the page first loads I see that the timer has been operating for 2 or

3
> seconds already (it updates the text field of a label control), but

whenever
> I perform other refreshes of the interface it does not seem to be working
> properly - it no longer updates the label.
>
> Could someone help me or point me to a good reference online or hardcopy?
>
> Thank you...
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timers spf R Siffredi Cisco 1 10-31-2005 05:11 PM
Web Timers Girish Pal Singh ASP .Net 4 08-13-2003 08:59 PM
timers Girish Pal Singh ASP .Net 2 08-11-2003 01:00 PM
System.Timers.Timer vs. System.Threading.Timer Kelsang Wangchuk ASP .Net 0 07-31-2003 04:28 PM
Timers in application web programming Stephen Inkpen ASP .Net 1 07-16-2003 02:12 AM



Advertisments