1.项目中添加引用ajax.dll文件2.在web.config中设置httpHandleer标签 3.Page_Load事件中加入 Ajax.Utility.RegisterTypeForAjax(typeof(本页类名));4.标记函数,让客户端可以调用服务器端的方法,将标记放在函数前 [Ajax.AjaxMethod()] public int ServerMethod(para..){ ...... }5.客户端使用JS调用 var response=本页类名.Server
AJAX .Net Wrapper quick usage guide Karl Seguin - http://www.openmymind.net/ - copyright 2005 (view AjaxGuide.doc for more detailed information) Step 1 - Create a reference to the ajax.dll file Step 2 - Set up the HttpHandler In the web.config, set