WorldofASP.NET : ASP.NET Directory, Tutorial, Hosting, and Source Code
You are 1 of 239 users


Working with Asp.Net Timer control on client side

Blogger : ASP.NET Blogs
All posts : All posts by ASP.NET Blogs
Category : AJAX
Blogged date : 2008 Feb 21

Hi,

 

Few days back I saw this question in the forums and from then I was looking for an answer for it.  The Timer control in the asp.net Ajax is pretty useful when we want to do some activity on the client side at a certain interval of time. The control also gives us good control on tweaking it on the server side. But Sometime the requirement is such that we want to change the value of timer interval, or stop the timer on the client side itself.

A few days back I learned that the timer control can easily be tweaked in the client side also. Let’s assume we are using a timer control with ID Timer1.

 

var Timer1 = $find(‘<%= Timer1.ClientID %>’);

 

//Now to change the timer interval use

Timer1.set_interval(5000); //To disable the timerTimer1.set_enabled(false); //To enable the timer againTimer1.set_enabled(true);


//And to stop the timer

Timer1._stopTimer();

 

Vikram


Read comments or post a reply to : Working with Asp.Net Timer control on client side
Page 699 of 1924
Next | Last

.NET News Categories








Legend : - Within 3 Days - Within 6 Days - Within 9 Days

Home | Add Resources | Sponsored Listings | Advertise with Us | SiteMap 1 | SiteMap 2 | Link To Us | Contact Us
© 2002-2008 Worldofasp.net ASP.NET Directory, Hosting and Tutorials | All rights reserved
Our Partners : ASP.NET Web Hosting | Windows Web Hosting | ASP.NET Hosting | Phone Card | PHP Directory | Bangkok Hotels |Calling Card