ÈçºÎÌá½»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();
Ïà¹ØÎÊ´ð£º
ASP.NET MVC¼Ü¹¹·¢²¼ÁË,ÄãÓÃÁËÂð£¿
»¹ÔÚѧϰÖÐ
ÎÒÒ²ÔÚѧϰ¡£ÂòÊ飬Ìý½Ì³Ì£¬¿´ÍøÉÏ×ÊÁÏ£¬ÏÂÔØÀý×Ó£¬¸Ð¾õÌý²»´íµÄ£¬²»¹ý±ÈÆ𹤳§Ä£Ê½£¬ËƺõÑ·É«Á˵㡣¡£¡£»¶Óµ½ÎÒ²©¿Í»¥Ïàѧϰ
¶¼ÓÃÁË5¸ö°æ±¾ÁË ´Ó PV1 µ½beta ......
֮ǰÓöµ½Ò»¸öÎÊÌâ¡£
ÓÚÊÇ×öÁËÒÔÏÂʵÑ飺
Ò³Ãæ¼ÓÔغó£¬Ìá½»Ò»¸öAjaxÇëÇó(ÔݳÆΪajax1)£¬ÇëÇóµÄÏß³ÌÔÚ·þÎñÆ÷Éϱ»Ë¯Ãß10ÃëÖÓ¡£
µã»÷Ò³ÃæÉÏÒ»¸öbutton£¬´¥·¢ÁíÒ»¸öAjaxÇëÇó(ajax2)¡£
µ±Ã»ÓÐʹÓÃsession£¬ÔÚ·þÎñÆ÷δ´ ......
ÎÒÖ÷ÒªÏë¿ØÖÆÏÂword±£´æµÄµØÖ·£¬µ«ÊDZàÒë²»¹ýÈ¥£¬×ܾõµÃÊÇȱÁËusing¡£¡£¡£
лл
´úÂëÈçÏ£º
using System;
using System.IO;
using System.Collections;
using System.ComponentModel;
using System.Data;
u ......
Ç°¼¸ÌìÓÐÈËÎÊÎÒ¶àÏ̷߳½ÃæµÄ¶«Î÷£¬Ð´ÁËÔõô¾ÃµÄ³ÌÐò£¬ÎÒÒ»Ö±ÓÃ(.net 1.1)ÔÚasp.netһֱûÓùý¶àÏ̵߳ĴúÂë¡£
˵ʵ»°£¬ÎÒÒ»Ö±²»ÖªµÀ¶àÏß³ÌÔÚasp.netÄÜ×öʲô·½ÃæµÄÓ¦Óá£ÎÒÏÖÔÚ³ÌÐò¶¼ÊÇ get post Ìá½»²ÎÊý£¬´úÂëÖÐÏò ......
ºǫ́£º
protected void form_ini2(string id)
{
//´¦Àí´úÂë
}
ǰ̨£º
<script language="javascript">
function DbClickEvent(a ......