Ajax at Client :
var request = new XMLHttpRequest();
var xmlstr = "<persons><person><name>user1</name><age>12</age></person><person><name>user2</name><age>11</age></person></persons>";
request.onreadystatechange=<your callback>;
request.open("Post","AjaxProcessor.aspx",true);
request.setRequestHeader("Content-Type","Text/XML");
request.send(xmlstr);Server AjaxProcessor.aspx:
using System.Xml;
try
{
XmlDocument doc = new XmlDocument();
doc.Load(Request.InputStream);
}
catch (Exception ex )
{
throw;
}
posted on 2007-07-06 10:37
GuangMing Lan 阅读(141)
评论(0) 编辑 收藏 引用