ajax 不能调用后台方法
hel 2009-08-13 12:02:25 if (!Page.IsPostBack)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(Index));
}
[AjaxPro.AjaxMethod]
public int getClose()
{
int i = 0;
try
{
i = bll.getClose(loginusername);
}
catch (Exception ess)
{
throw new Exception(ess.Message);
}
return 1;
}
这个是cs 申明的ajax
function check()
{
showMsg();
count++;
Index.getClose( "1",setReturn);
setTimeout("check()",3000);
}
在前台 调用Index 的时候 说Index 没有定义 是怎么回事?