asp.net [AjaxMethod]

时间:2014-05-29 09:28:09   收藏:0   阅读:206

AjaxPro.2.dll

cs 代码

using AjaxPro;

Utility.RegisterTypeForAjax(typeof(BOMdr_KT));

[Ajax.AjaxMethod()]

public string GetAddress(string UserID)

{ string Address=""; //do somthing to get the address here return Address; }

 

确保页面中有<form runat="server"></form>标签

web.config

<httpHandlers>

  <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, Ajaxpro.2"/>

 

http://www.jb51.net/article/28520.htm  参考

 

asp.net [AjaxMethod],布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!