Ajax使用初步,配置步骤
1.把Ajax.dll copy到应用系统bin目录下,然后在工程引用中引用Ajax.dll,如果没有的话可以下载 /Files/singlepine/Ajax.rar
2.配置web.config,添加如下信息
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
4.在Pages\AjaxTest下建立cs文件AjaxMethod.cs,添加如下方法
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![ContractedBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![dot.gif](https://singlepine.cnblogs.com/Images/dot.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedBlockEnd.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![ContractedBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![dot.gif](https://singlepine.cnblogs.com/Images/dot.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedSubBlockStart.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![ContractedSubBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
![dot.gif](https://singlepine.cnblogs.com/Images/dot.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedSubBlockEnd.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedSubBlockStart.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![ContractedSubBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif)
![dot.gif](https://singlepine.cnblogs.com/Images/dot.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedSubBlockEnd.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![ExpandedBlockEnd.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![None.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![ContractedBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![dot.gif](https://singlepine.cnblogs.com/Images/dot.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![InBlock.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![ExpandedBlockEnd.gif](https://singlepine.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
实现效果:在第一个textbox中输入内容,点击button,就把内容显示到第二textbox中。这只是一个简单的示例,还可以修改调用方法,从数据库读取以及更复杂的操作