ajaxpro的用法详解!
在项目中引入ajaxpro.dll,在web.config中的<system.web></system.web>中加入<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
在需要引用的页面的page_load里加入
AjaxPro.Utility.RegisterTypeForAjax(GetType(index))注:index为本页类名。
然后加入处理函数
<AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)> _
Public Function shiy(ByVal value As String)
‘你的逻辑
End Function
------------------------------------------------------
ajaxpro获得连接参数必须用 page = HttpContext.Current.Request.QueryString("page")
注意:ajaxpro在前台引用的时候要放在<form runat="server"></form>里
否则出现未定义错误