AjaxMethod未定义原因

原因:是命名空间的问题
注意事项:

1.
pageload()方法中
AjaxPro.Utility.RegisterTypeForAjax(typeof(WebApplication2.AjaxMethod));
2.
AjaxMethod类中
[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]

3.
web.config中
<httpHandlers>
        <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
      </httpHandlers>
4.global.asax的Application_Start方法中

AjaxPro.Utility.HandlerPath = "ajaxpro";
posted @ 2006-08-07 15:05  dodo-yufan  阅读(4065)  评论(9编辑  收藏  举报