Çó ½âÎö xml µÄ´úÂë - .NET¼¼Êõ / ASP.NET
ÓÐÒ»¸öhttpµØÖ· ,Ò³ÃæÊÇ aspx £¬ÀïÃæµÄÄÚÈÝÈ«ÊÇ xml £¬Çó½âÎöÕâÑùµÄxml µÄ´úÂë
ѧϰ dom xpath¾Í¿ÉÒÔ½âÎöÁË
°ï¶¥¡¡
»ñÈ¡ webclient webrequest
½âÎö system.xml
ÓоßÌåµÄ´úÂëÂð
string xmlSource ="";
//xmlSource Ϊ httpµØÖ· ÖлñÈ¡µÄxml×Ö·û´®
XmlDocument doc=new XmlDocument();
doc.LoadXml(xmlSource);
XmlDocument xmldoc = new XmlDocument();
xmldoc.LoadXml("");
XmlNode xmlnode1 = xmldoc.SelectSingleNode("");
foreach (XmlElement xmlnode in xmlnode1.ChildNodes)
{}
ʹÓÃXmlReaderµÄ·½Ê½À´¶ÁÈ¡
ÔÚ.netÖÐÖ±½Ó ÓÃXmlReader·½·¨¾ÍÐС£
ÔÚaspxÒ³ÃæµÄ¡£¡£Äã˵µÄÊDz»ÊÇASP.NET AJAX ÀïµÄXML-script£¿£¿
¿´¿´ÊDz»ÊÇÕâЩ£º
<script type="text/xml-script">
<page xmlns="http://schemas.microsoft.com/xml-script/2005">
<components>
<button id="btnSay">
<click>
<setPropertyAction target="lblHello" property="text"
value="Hello XML-script!" />
</click>
</button>
</components>
</page>
</script>
ÕâÀïÓÐxml-scriptµÄ½Ì³Ì£ºhttp://www.cnblogs.com/webabcd/archive/2007/01/24/629236.html
Ö»¹
Ïà¹ØÎÊ´ð£º
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
ÔõÑù½«ASP³ÌÐòת»»Îª.NET³ÌÐò ?
ÕÒ¸öÈ«²Å·Òë¡£
ÊÖ¶¯È¥Ð´
¸Ð¾õд¹ýaspµÄ£¬À´Ð´asp.net£¬ÉÏÊÖÓ¦¸Ã¿ìµã¡£
¸üÄÜÀí½âasp.netµÄһЩÄÚ²¿¼¼Êõ
asp.net¶¼±»·â×°ÁË
ÎÒÊÇ×ö.NetµÄ£¬¶ÔASPһֱû½Ó´¥µ½£¬ºÜİÉú¡£
¹« ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......