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