Timer control in the AJAX

Explain the requirement of Timer control in the AJAX.

E

Expert

Verified

Timer control is used with the UpdatePanel control to enable the partial-page updates at the specified interval. It is generally used whenever a periodically partial-page updates for one or more UpdatePanel controls is required without refreshing entire page.

The Timer control is server control which sets the JavaScript component in Web page. Interval property of the Timer control provides time in milliseconds. Like the UpdatePanel control, the Timer control also requires an instance of the ScriptManager control in the Web page.
Whenever the Timer control initiates a postback, Tick event is raised on server for which an event handler can be provided for performing the actions when the page is submitted to server. The Tick event happens when the time stated in the interval property has lapsed and page is posted on the server. One or more Timer controls may be added over the Web page. Commonly the entire page needs only a single Timer control; although, several Timer controls can be used, if the UpdatePanel controls are being updated at different intervals.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.