摘要: 配置: 1)Web.config的配置2)添加引用dll文件引用1)在Page_Load中加入: AjaxPro.Utility.RegisterTypeForAjax(typeof(JSdiaoyongC));2)C#中的方法用[AjaxPro.AjaxMethod]标记,方法用public作为修饰,例如:[AjaxPro.AjaxMethod]public int setNumber(int i){ return i + 1;}3)JS中的调用调用是返回的是Object类型,所以取值要用其value,例如 注意:1). ajaxPro定义的方法中不能包含控件,也不能有Request等2). 阅读全文
posted @ 2010-03-12 13:58 踏歌长行 阅读(193) 评论(0) 推荐(0) 编辑