ajaxPro

来源:互联网 发布:谷歌软件 编辑:程序博客网 时间:2024/05/01 21:04

1.添加ajaxPro 的引用 (我资源上有,ajaxPro)

2.在<system.web>配置节点下添加
  <httpHandlers>
   <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro"/>
  </httpHandlers>

3。在Page_load事件下添加

  AjaxPro.Utility.RegisterTypeForAjax(typeof(_drag2));

_drag2是当前页的默认生成的类,如有文件夹,像wwf_drag最好将wwf去掉

 

4。前台调用后台函数

前台

 _drag2.del(id).value;

后台

   [AjaxPro.AjaxMethod]

    public  static string del(string str)
    {
     。。。。。。。。。。。
    }

 就OK了!!!

原创粉丝点击