This article mainly introduces the functions and usage of several core controls of ASP. net ajax.
Including Scriptmanager, Updatepanal, Updateprogress, and Timer
Figure:
I used a mind map to sort out several core controls of ASP. NET AJAX. It seems that the image is not very effective, and then it is imported into text. See the following article.
The code will not be pasted up. The source code from DEMO1 to DEMO4 is uploaded to the CSDN resource. Click here to download it.
1 ScriptManager
1.1 Overview
1.1.1 is the basis for running ASP. net ajax applications. It is used to process all components on the page. And partial page updates to generate relevant client proxy scripts so that you can access Web services in javascript
1.2 Structure
1.2.1 all pages that need to support ASP. net ajax have only one ScriptManager control, which must be placed before other elements. It is best to move the form Element
1.2.2
1.3 DEMO1
2 UpdatePanel
2.1 Overview
2.1.1 the Update control can implement partial Update for Web applications. Its strength is that local Update can be automatically implemented without any client script.
2.2 Structure
2.2.1
2.3 DEMO2
3 UpdateProgress
3.1 Overview
3.1.1 when there are a large number of partial updates, there will be a delay in time. To prevent users from being too boring during the wait process, some wait UI or progress bars or text prompts are usually used.
3.2 Structure
3.2.1
3.3 DEMO3
4 Timer
4.1 Overview
4.1.1 similar to the Timer provided in most programming tools, the specified code is executed at a specific interval.
4.1.2 it can regularly trigger the delivery of the entire page. When it is used with the UpdatePanel control, it can regularly trigger asynchronous delivery and partially refresh the content of the Updatepanal control.
4.2 Structure
4.2.1
4.3 DEMO4
Code will not post up, DEMO1 to DEMO4 source code uploaded to the CSDN resources, click here to download http://www.bkjia.com/uploadfile/2012/0114/20120114105737220.zip
From jarin's column