else {//POST xmlhttp测试 context.Response.ContentType = "text/xml"; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(context.Request.InputStream); if (xmlDoc.DocumentElement.Name == "T") { xmlDoc.LoadXml(string.Format(@"<time>POST:{0}</time>", System.DateTime.Now)); xmlDoc.Save(context.Response.OutputStream); context.Response.End(); } } }
public bool IsReusable { get { return false; } } }
http://www.cnblogs.com/Files/laiwen/XmlHttpNet.rar http://www.cnblogs.com/laiwen/archive/2006/12/26/604050.html (出处:清风网络学院)
上一篇:ASP.NET2.0中用ICallbackEventHandler实现客户端与服务器端异步交互
下一篇:ASP.NET 2.0-选用DataSet或DataReader
|