Ajax之xmlHttpRequestvar doc;
Ajax之xmlHttpRequestwindow.onload 
= function()
}

aspx文件
Ajax之xmlHttpRequestprotected void Page_Load(object sender, EventArgs e)
}

 

 

另:实现调用一个aspx文件多个方法:

Ajax之xmlHttpRequest调用时:
Ajax之xmlHttpRequestdoc.open(
"Get","/Ajax/test.aspx?id=1",false);
Ajax之xmlHttpRequest加个参数

 

aspx文件代码:

Ajax之xmlHttpRequestprotected void Page_Load(object sender, EventArgs e)
}

 

 

不过很遗憾,我所知道的基于xmlhttprequest的ajax不能支持firefox,找了很多资料也是,但可以借助ajaxPro,更好的办法是用jQuery库,它也是基于httprequest的,但还不知道它是怎么实现的。

相关文章:

  • 2021-09-22
  • 2021-10-31
  • 2022-12-23
  • 2022-02-26
  • 2021-09-21
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案