ASP. NET Ajax notes

Source: Internet
Author: User

I. scriptmanager

★The master page and subpage have the same event function. The subpage event function overwrites the event function on the master page.

★The child page can directly call the control of the master page. When the child page has the same control ID as the master page, the ID of the master page control is called.

★Multiple WebServices can be introduced to one page (master page, subpage, user web page, and web page,
The sub-page and master page can share a WebService, which can be placed on the master page or sub-page.

★When different WebServices need to be introduced to sub-pages, you can introduce them on the master page or use scriptmanagerproxy,
Scriptmanagerproxy can only appear on subpages.

★The rules of web pages and Web user controls are the same as those of master pages and subpages.

Ii. updatepanel

★When a page has multiple updatepanel, replace all updatepanel's updatemode = conditional, and then dynamically update an updatepanel.
Step: Register scriptmanager1.registerasyncpostbackcontrol () for the pageload event ();
Call updatepanel. Update () in the event function ();

★The control in each updatepanel can only be associated with the new updatepanel (provided that the updatemode of other updatepanel is conditional ),
To update an updatepanel to be updated by another updatepanel control, you only need to bind <asp: asyncpostbacktrigger controlid = "button3"/>

★Nested rules of updatepanel:
You can update the content on the outside, but the content on the outside cannot be updated (unless the updatemode on the outside is the default value)

 

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.