Walkthrough: Using the ASP.NET Timer Control with Multiple UpdatePanel Controls

In this walkthrough you will use a Timer control to update the contents of two UpdatePanel controls. The Timer control will be positioned outside the two UpdatePanel controls and it will be configured as a trigger for both panels.

Prerequisites

To implement the procedures in this walkthrough you need:

  • Microsoft Visual Studio 2005 or Microsoft Visual Web Developer Express.

  • An AJAX-enabled ASP.NET Web site.

To refresh UpdatePanel controls at a timed interval

Review

This walkthrough showed how to use a Timer control with multiple UpdatePanel controls to enable partial-page updates. You must add a ScriptManager control, and then add the UpdatePanel controls. A Timer control updates the contents of the panels when you configure it as a trigger for the panels.

For information about how to use a Timer control inside an UpdatePanel control, see Walkthrough: Introduction to the Timer Control.

See Also

Concepts

Timer Control Overview

Partial-Page Rendering Overview

Reference

Timer

UpdatePanel

ScriptManager