---------------------- Windows Phone 7手机开发、.Net培训、期待与您交流! ----------------------
简单的ajax代码:
var xmlhttp;
if(ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
xmlhttp.open("POST","GetData.ashx",false);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
//需要操作的代码;
}
else
{
}
}
}
xmlhttp.send();
---------------------- Windows Phone 7手机开发、.Net培训、期待与您交流! ----------------------