Http://www.cnblogs.com/terrylee/archive/2006/11/12/aspnet_ajax_quickstarts.html
Download
Http://www.microsoft.com/downloads/details.aspx? Familyid = ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6 & displaylang = en
Network Abstract
Http://hi.baidu.com/balckcoffee855/blog/item/55ea4508ffc38e960b7b82d1.html
Notes
1. To use the updatepanel control to be available, you must set
The enablepartialrendering attribute is true.
2. All events triggered within updatepanel are automatically updated asynchronously without any operation.
Ensure that the control is placed in updatepanel.
3. If you need to trigger an external control, specify a trigger. Of course, this trigger must change
Control. It's really convenient.
Front-end
- <Body>
- <Form ID = "form1" runat = "server">
- <Asp: scriptmanager id = "scriptmanager1" runat = "server"/>
- <Div>
- <Asp: updatepanel id = "updatepanel1" runat = "server">
- <Contenttemplate>
- Updatepanel1 <asp: button id = "button1" runat = "server" text = "Internal Control" onclick = "button#click"/>
- </Contenttemplate>
- </ASP: updatepanel>
- <Asp: updatepanel id = "updatepanel2" runat = "server">
- <Contenttemplate>
- Updatepanel2 <asp: Label id = "label1" runat = "server" text = "label"> </ASP: Label>
- </Contenttemplate>
- <Triggers>
- <Asp: asyncpostbacktrigger controlid = "button2"/>
- </Triggers>
- </ASP: updatepanel>
- <Br/>
- <Asp: button id = "button2" runat = "server" onclick = "button2_click" text = "External Trigger"/>
- </Div>
- </Form>
- </Body>
Background
- Public partial class _ default: system. Web. UI. Page
- {
- Protected void page_load (Object sender, eventargs E)
- {
- }
- Protected void button#click (Object sender, eventargs E)
- {
- This. button1.text = "partially updated ";
- }
- Protected void button2_click (Object sender, eventargs E)
- {
- This. label1.text = "updated by an external trigger ";
- }
- }