Several core controls of ASP. NET Ajax

Source: Internet
Author: User

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

 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.

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.