
正文
通过([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;







