Ajax前端调后台方法

后台对当前页面类进行注册

Ajax.Utility.RegisterTypeForAjax(typeof(Login));//Login 当前类名

 

在方法上面加

[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]

 

前端调用时用

Login.方法名();//可写参数

 

posted @ 2015-05-26 15:32  想念熊小米  阅读(318)  评论(0编辑  收藏  举报