ÈçºÎÌá½»xmlÀàÐÍÊý¾Ý - .NET¼¼Êõ / ASP.NET
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½·¨·µ»ØÁËÒ»Ìõ·ûºÏÌõ¼þµÄDataRow£¬
ÏÖÔÚÎÒÏëÈ¡³öÕâÌõDataRowÖеÄTranXmlÁеÄÐÅÏ¢£¬Í¨¹ýµã»÷Ìá½»°´Å¥½«ÆäÌá½»µ½ÁíÒ»¸öÒ³Ãæ£¨GetXml.aspx£©£¬
ÇëÎÊǰºǫ́¾ßÌåÔõôʵÏÖ£¿
×Ô¼ºÏȶ¥Ò»Ï£¬²»ÖªµÀ¿É²»¿ÉÒÔÓÃformÌá½»
string xml=TranXmlÁеÄÖµ
byte[] sendContent = Encoding.GetEncoding("gb2312").GetBytes(xml);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("GetXml.aspx");
request.ContentLength = sendContent.Length;
request.ContentType = "text/xml";
request.Method = "POST";
Stream stream = request.GetRequestStream();
stream.Write(sendContent, 0, sendContent.Length);
stream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
GetXml.aspx
Stream s = Request.InputStream;
StreamReader reader = new StreamReader(s);
string xml = reader.ReadToEnd();
Ïà¹ØÎÊ´ð£º
°ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸쬴ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ
LZºÃÀ÷º¦
Ó÷´±àÒëÈí¼þ
ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿
ÓÐÃ ......
ÎÒÖ÷ÒªÏë¿ØÖÆÏÂword±£´æµÄµØÖ·£¬µ«ÊDZàÒë²»¹ýÈ¥£¬×ܾõµÃÊÇȱÁËusing¡£¡£¡£
лл
´úÂëÈçÏ£º
using System;
using System.IO;
using System.Collections;
using System.ComponentModel;
using System.Data;
u ......
Ƥ·ôºÍÑùʽ±í¶¼¿ÉÒÔÉèÖÿؼþµÄÍâ¹Û£¬¾ßÌåÓÐÊ²Ã´Çø±ðÄØ£¿
skin ÊÇasp.net ÌåϵµÄ ¾ÍÏ൱ÓÚ<asp:TextBox> ¶ÔÓ¦ÓÚ<input type="text">
Äã°ÑƤ·ôµ±³ÉÒ·þ£¬°ÑÑùʽ±íµ±³É»¯×±Æ·¾ÍÈÝÒ×Àí½âÁË
......
dsQuyMst.Tables["QuyMst"].Rows[0]["SHDOCO"] = "1111";//Õâ¾ä±¨´í£¨Î´½«¶ÔÏóÒýÓÃÉèÖõ½¶ÔÏóµÄʵÀý¡££©
ÕâÖªµÀÊÇʲôÔÒò£¿
¸ßÈËÖ¸µã~~~
using System;
using System.Data;
us ......