Graphical ASP. NET Ajax 1.0 RC Development

Source: Internet
Author: User

Development Environment: vs2005 + ASP. NET Ajax 1.0 RC

First download the Installation File of ASP. NET Ajax 1.0 RC. After installation, we can start our Ajax journey.

1. open vs2005, click "new"-"file"-"website", and select "ASP. net-Ajax enabled web site template, which is installed by ASP. net Ajax 1.0 RC templates

2. You can see that there is an Ajax extensions in the left toolbox. The following controls include timer, scriptmanager, scriptmanagerproxy, updateprogress, updatepanel, and so on.CodeView. You can see that the label of the scriptmanager control is added to the form label.

3. Drag an updatepanel control from the left and place it under the scriptmanager control.

4. Drag a gridview control from the toolbox and place it in the updatepanel control.

5. In the task menu of the girdview control, perform the "Select data source" operation.

6. Select "Database" to retrieve data. Here we select SQL Server

7. Enter the database information and select "northwind" Database

8. Save the connectionProgramConfiguration File

9. Select "Custom SQL statement or storage program" to retrieve data

10. Enter the SQL statement:
Select customerid, companyName, contactname, address, city from customers

11. Test Query

12. Select enable paging and enable sorting to verify Ajax Effect

13. Everything is ready, save it, press Ctrl + F5 to view our labor results, click the page number, you can read data without refreshing, click the title number, you can sort it, it is also refreshing.

Through the simple example above, we can feel the use of ASP. net Ajax 1.0 RC version for development, can easily and quickly achieve Ajax effect; at the same time, RC version is close to the final release version, has been relatively mature, this reduces the risks caused by Microsoft's product adjustment. If you are interested, you can try again.

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.