asp.net AJAX 1.0 RC Development 10-minute graphic _ Practical tips

Source: Internet
Author: User

Development environment: Vs2005+asp.net AJAX 1.0 RC

First download asp.net Ajax 1.0 rc installation files, complete the installation can carry out our Ajax trip.

1. Open VS2005, click "New"-"File"-"website", select "Asp.net-ajax Enabled Web Site" template, this template is we install ASP.net AJAX 1.0 rc after the template

2. You can see one more Ajax Extensions on the left toolbox, including several controls such as Timer,scriptmanager,scriptmanagerproxy,updateprogress,updatepanel, On the right side of the code view, you can see the label of a ScriptManager control added to the form label

3. Drag a UpdatePanel control from the left to place under the ScriptManager control

4. Then drag a GridView control from the toolbox and place it in the UpdatePanel control

5. In the Girdview control's Task menu, perform the Select data source action

6. Choose to get data from "database", where we choose SQL Server

7. Enter database information, select "Northwind" Database

8. Save the connection to the program configuration file

9. Select "Custom SQL statement or stored 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 the Ajax effect

13. Everything is ready, save, and then press CTRL+F5 to view the results of our labor, click on the page number, you can achieve no refresh read data, click the title number, can be sorted, is not refreshed.

Through the simple example above, we can feel the use of ASP.net Ajax 1.0 RC version of the development, can be very convenient and efficient implementation of AJAX results, while the RC version has been close to the final release, has been more mature, less Microsoft's products to adjust the risks, Interested friends can make further attempts.

See text version of ajax.asp.net:Sample asp.net AJAX application

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.