js ajax 传送xml dom对象到服务器
2020-12-13 14:53
标签:des style class blog code http js ajax 传送xml dom对象到服务器,搜素材,soscw.com js ajax 传送xml dom对象到服务器 标签:des style class blog code http 原文地址:http://www.cnblogs.com/jecyhw/p/3795363.html客户端代码
1 服务器端代码
1 protected void Page_Load(object sender, EventArgs e)
2 {
3 string res;
4 Request.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
5 XmlDocument xmlDoc = new XmlDocument();
6 xmlDoc.Load(Request.InputStream);
7 XmlNode node = xmlDoc.SelectSingleNode("choose");
8 foreach (XmlNode child in node.ChildNodes)
9 {
10 res + child.innerText;
11 }
12 Response.Write(res);
13 Response.End();
14 }
15 }