通过([AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)] )在前台html页面调用cs方法

app_code中CS代码( Cs页面文件名public class ajaxGET):

[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.Read)]
public DataTable getchild(string str)
{ 
        return new table();

}

前台aspx页面注册ajax方法:

AjaxPro.Utility.RegisterTypeForAjax(typeof(ajaxGET));

前台页面调用JS直接调用:

var dt= ajaxGET.getchild(va.value).value;
原文地址:https://www.cnblogs.com/xyzhuzhou/p/3467180.html