asp.net Ajax Primer Series (9): Using UpdatePanel in master Pages

Source: Internet
Author: User

This article briefly describes the use of UpdatePanel controls in master pages, translated from official documents.

A Add UpdatePanel Control to Content-page

1. Add a new master Page and switch to Design view.

2. Under the AJAX Extensions tab in the Toolbox, double-click the ScriptManager control to add it to the page, ensuring that the ScriptManager control is added outside the ContentPlaceHolder control.

3. Add the text "Master Page" to the ContentPlaceHolder control.

4. Under the HTML tab of the Toolbox, drag horizontal rule (horizontal) to the text, following the page:

5. Create a content page and select its master page for the page we just created.

Right-click in Solution Manager and select the Add New Item menu command to select the Select Master page in the Add New Item dialog box and click the OK button.

6. Enter the content page in the content control in the content page and add a UpdatePanel control.

7. Adds a calendar control to the UpdatePanel control.

8. Save and press CTRL + F5 to run.

9. Click the last month and next month buttons in the Calendar control, and the page does not have a full page refresh.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.