Requirement of Timer control in AJAX

Explain the requirement of a Timer control in the AJAX.

E

Expert

Verified

Timer control is used with the UpdatePanel control to permit partial-page updates at the specified interval. It is mainly used when the periodically partial-page update for one or more UpdatePanel controls is needed without refreshing entire page.

Timer control is the server control that sets JavaScript component in a Web page. Interval property of Timer control denotes time in the milliseconds. Similar to UpdatePanel control, Timer control also need the instance of a ScriptManager control in a Web page. 

When a Timer control initiates the postback, Tick event is raised on a server for which we can give the event handler to do the actions when a page is submitted to a server. Tick event takes place when a time specified in a interval property has elapsed and a page is posted on server. We can add one or more Timer controls on the Web page. Generally the whole page needs a single Timer control; though, we can use multiple Timer controls, if a UpdatePanel controls are updated at different intervals.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.