page_load中写
Ajax.Utility.RegisterTypeForAjax(typeof(文件名));
[AjaxPro.AjaxMethod]
public string CheckUser()
{
//验证代码
}
html
<script language="javascript" type="text/javascript">
var response = 类名.CheckUser();
//respnse 就是你要的结果
</script>
Ajax.Utility.RegisterTypeForAjax(typeof(文件名));
[AjaxPro.AjaxMethod]
public string CheckUser()
{
//验证代码
}
html
<script language="javascript" type="text/javascript">
var response = 类名.CheckUser();
//respnse 就是你要的结果
</script>