[AjaxPro.AjaxMethod]
public string SetTb()
{
Thread.Sleep(10000);
string str="return sth";
return str;
}
======= Cilent ============
function OnClick()
{
AjaxPro.timeoutPeriod = 1000 * 60 * 60; //毫秒为单位
AjaxTest.funtion.SetTb(GetReg);
}
function GetReg(res)
{
alert(res.value);
}
public string SetTb()
{
Thread.Sleep(10000);
string str="return sth";
return str;
}
======= Cilent ============
function OnClick()
{
AjaxPro.timeoutPeriod = 1000 * 60 * 60; //毫秒为单位
AjaxTest.funtion.SetTb(GetReg);
}
function GetReg(res)
{
alert(res.value);
}