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.