Using the ASP.NET UpdatePanel Control with Master Pages
Any ASP.NET page that includes an UpdatePanel control also requires a ScriptManager control. To use UpdatePanel controls with master pages, you can put a ScriptManager control on the master page. In this scenario, the master page provides a ScriptManager control for every content page. If you do not want partial-page updates enabled for individual content pages, you can disable partial-page updates for those pages.
Alternatively, you can put the ScriptManager control on each content page. You might do this if only some of the content pages will contain UpdatePanel controls.
To add an UpdatePanel control to a content page
In this part of the tutorial you will add controls to the master page that cause an asynchronous postback and then refresh the UpdatePanel control on the content page.
To enable partial-page updates for all content pages
In the master page, switch to Design view.
Add text and two buttons after the ScriptManager control on the master page.
Set the ID of one button to DecrementButton and its Text value to "-". Set the ID of the other button to IncrementButton and set its Text value to "+".

The buttons will increment and decrement the selected date on the calendar in the content page.
Select the + (plus) button, and then in the toolbar of the Properties window, click the Events button and enter MasterButton_Click in the Click box.

Repeat the previous step for the - (minus) button.
Double-click the page outside the controls to create a Page_Load event handler.
Add the following code in the handler to register the two buttons as asynchronous postback controls:
Add the following code to create a Click handler named MasterButton_Click:
Add the following code to create a public property named Offset in the master page that tracks the difference between today's date and the selected date.
In the content page, switch to Design view and then double-click the Calendar control to create an event handler for the SelectionChanged event.
Add the following code to the SelectionChanged event handler to set the Offset property when the user selects a date.
Switch to the content page and add a Page_Load event handler that sets the selected date of the calendar to the current date.
Add an @ MasterType directive to the page so that you can refer to the master page Offset property as a strongly typed property.
In the content page, switch to Design view and select the UpdatePanel control.
In the Properties window, set the UpdatePanelUpdateMode property to Conditional.

Save your changes and then press CTRL+F5 view the page in a browser.
Click the next and previous month controls on the calendar.
The calendar changes without refreshing the whole page.
Select a date on the calendar and then click the buttons on the master page to change the selected date.
These changes occur without refreshing the whole page.
The example is styled to better show the region of the page that the UpdatePanel control represents.
If you add a ScriptManager control to a master page, by default partial-page updates are enabled for all content pages. If do not want to enable partial updates for an individual content page, you can disable that capability. You might do this is if your content page contains custom controls that are not compatible with partial-page updates.
To disable partial-page updates for a content page
In the content page, create a handler for the page's Init event that sets the ScriptManager control's EnablePartialRendering property to false.
You must change the state of the EnablePartialRendering property during or before the content page's Init event.
This tutorial shows how to use an UpdatePanel control in master pages. If there is a ScriptManager control on the master page, you can use UpdatePanel controls on content pages without declaring a ScriptManager control in the content page.
To disable partial-page rendering for an individual content page whose master page has partial-page rendering enabled, programmatically disable partial-page rendering for the content page.