ASP.NETÖ®XML£ºÒª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ
ASP.NETÖ®XML£ºÒª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ
Òª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ
ʱ¼ä£º2009-06-12 08:15:11
Òì³£ÏêϸÐÅÏ¢: System.ArgumentException: Òª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ¡£
²úÉú×´¿ö£ºÏÖÔÚÓÐÁ½¸öxmlÎļþ£¬ÎÒÏë°ÑÕâÁ½¸öxmlºÏ²¢£¬ÔÚ¸øxml½Úµã²åÈëÒ»¸ö×Ó½Úµãʱ³öÏÖÁËÕâÑùµÄ´íÎó£¬ÊÇʲôÔÒò£¿¸ÃÔõô½â¾ö£¿
½â¾ö°ì·¨£º
ÓÃImportNode
´úÂ룺
XmlDocument doc = new XmlDocument();
doc.LoadXml("<bookstore>" +
"<book genre='novel' ISBN='1-861001-57-5'>" +
"<title>Pride And Prejudice</title>" +
"</book>" +
"</bookstore>");
XmlDocument doc2 = new XmlDocument();
doc2.Load("books.xml");
XmlNode newBook = doc.ImportNode(doc2.DocumentElement.LastChild, true);
doc.DocumentElement.AppendChild(newBook);
Ïà¹ØÎĵµ£º
½øÈëMyEclipse6.XÏÂ
Ð޸ģºeclipse.ini Îļþ
-Duser.language=en
¸Ä³É
-Duser.language=zh
µ¯³öÌáʾ£ºCtrl+"/"
dtd ÃüÃû¿Õ¼äµÄÌáʾÐÅÏ¢
window-->Preference-->xml-->XML Catalog-->add
Location :sql-map-2.dtd
key type :pubic ID
key:-//ibatis.apache.org//DTD SQL Map 2.0//EN (XMLÎļþÃüÃû¿Õ¼ ......
ºÎνLINQ? LINQ¼´.NET ÓïÑÔ¼¯³É²éѯ(.NET Language-Integrated Query (LINQ) Framework),Ϊ.NET¼Ü¹¹ÖеÄÖØÒª×é³É²¿·Ö¡£LINQϵÁм¼ÊõÌṩÁËÕë¶Ô¶ÔÏó(LINQ)¡¢¹ØϵÊý¾Ý¿â(LINQ to SQL)ºÍXML(LINQ to XML)µÄÒ»ÖÂÐÔ²éѯÌåÑé¡£ ʲôÊÇLINQ to XML? LINQ to XML ʹÓÃ×îеÄ.NET FrameworkÓïÑÔ¹¦ÄÜ£¬Ï൱ÓÚ¸üкÍÖØÐÂÉè¼ÆµÄÎĵµ¶ ......
һλASP.net³õѧÕßѧϰ¹ý³ÌÖÐÕûÀíµÄ±¸Íü¼£¬°üÀ¨“´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£¬Îª°´Å¥Ìí¼Ó¶Ô»°¿ò£¬É¾³ý±í¸ñÑ¡¶¨¼Ç¼£¬É¾³ý±í¸ñ¼Ç¼¾¯¸æ”µÈµÈ³£¼ûÎÊÌâµÄ½â¾ö·½·¨(ÍøÉÏ¿´µ½Í¦ºÃµÄ,¹²ÏíÒ»ÏÂ)¡£
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("<script>window.open
('*.aspx?id="+t ......
protected void Page_Load(object sender, EventArgs e)
{
getAllControlValue(this);
}
Hashtable getAllControlValue( object PageOrUserContro ......
1.updatepanel Öе¯³öÌáʾ´°¿Ú
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.Page.GetType(), "message", "alert('°¢ÐÜ£¡');", true);
2.ÔÚд°¿ÚÖдò¿ªÁ´½Ó
Response.Write(" <script>window.open('NewPage.aspx') </script>");
²»¹ýÿµ±µ¯³öÕâ¸öÍøÒ³¹ýºó,ÔÀ´µÄÖ÷ÍøÒ³µÄÒ³Ãæ×ÖÌå×Ô¶¯ ......