asp.net ¶ÔXML ¶Áд²é²Ù×÷
Ê×ÏÈ¿´ÏÂXML½á¹¹
<?xml version="1.0" encoding="utf-8"?>
<corplist>
<corp>
<linkname>³ÂÏÈÉú</linkname>
<corpname>XXXXXXXXX¹«Ë¾</corpname>
<email>xxxxx@126.com</email>
</corp>
<corp>
<linkname>²ÜÏÈÉú</linkname>
<corpname>YYYYYYY¹«Ë¾</corpname>
<email>yyyyyyyyyyyyy@126.com</email>
</corp>
<corp>
<linkname>ÕÅÏÈÉú</linkname>
<corpname>ZZZZZZZZZZ¹«Ë¾</corpname>
<email>zzzzzzzzzzzzzz@126.com</email>
</corp>
</corplist>
ÉÏÃæÊÇһЩÆóÒµÐÅÏ¢
Ôö£º
public void add()
{
//³õʼ»¯XML²ÎÊý
string url = Server.MapPath("/CorpManage/Mail.xml");//ÕâÀïдÉÏ·¾¶
XmlDocument xmlDoc = null;
//¼ÓÔØXMLÎĵµ
xmlDoc = new XmlDocument();
xmlDoc.Load(url);
XmlNode root = xmlDoc.SelectSingleNode("corplist");//²éÕÒcorplist½Úµã
//×¼±¸É¾³ýËùÓнڵã(ÈçºÎ²»ÐèÒªÔÚÔö¼Ó֮ǰɾ³ýËùÓбêÇ©£¬ÕⲽʡÂÔ)
root.RemoveAll();
//ÕâÀïÊǸöÑ»·£¬¼ÙÈçÄúÓÐÊý¾ÝÔ´µÄ»°ÔòÑ»·ÄúµÄÊý¾ÝÔ´
for (int i = 0; i < 4; i++)
{
//ÕâÀïµÄÊý¾ÝÎÒÊÇÂÒдµÄ......
string linkname = String.Format("aaaa{0}", i.ToString());
string corpname = String.Format("aaaa{0}¹«Ë¾", i.ToString());
string mail = String.Format("aaaa{0}@126.com", i.ToString());
//ÍùXMLÖвåÈëÊý¾Ý
try
{
//´´½¨Ò»¸öcorpÔªËØ
XmlElement xe1 = xmlDoc.CreateElement("corp");
//corpµÄ×ÓÔªËØlinkname
XmlElement xesub1 = xmlDoc.CreateElement("linkname");
xesub1.InnerText = linkname;
xe1.AppendChild(xesub1);
//corpµÄ×ÓÔªËØcorpname
XmlElement xesub2 = xmlDoc.CreateElement("corpname");
xesub2.InnerText = corpnam
Ïà¹ØÎĵµ£º
ʹÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ
×¢£º´ËϵÁмǼÔÚÎÒʵ¼Ê¿ª·¢ÖÐÓöµ½µÄÎÊÌâºÍÊÕ²ØһЩ¼¼ÇÉÎÄÕ¡£
ÎÒÃǶ¼ÖªµÀ£¬ÔÚGridviewÖв»ÄÜÖ±½ÓÈ¥°ó¶¨Êý¾Ý¿âÖеÄͼƬ£¬ÎÒÃÇ¿ÉÒÔÀûÓÃHttpHandlerºÜÈÝÒ×µÄÍê³ÉÕâ¸öÈÎÎñ£¬ÔÚÕâÀïÎҼǼһÏÂÕâ¸ö¹ý³Ì¡£
1.ÉÏ´«Í¼Æ¬´æ´¢µ½Êý¾Ý¿âÖÐ
ÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í£¬Ìí¼ÓÒ»ÏÂ3¸ö×ֶΣº
²½ÖèÒ»£ºÔÚWeb ......
ËÄ¡¢MultiView Àà
MultiView ¿Ø¼þÊÇÒ»×é View ¿Ø¼þµÄÈÝÆ÷¡£Ê¹ÓÃËü¿É¶¨ÒåÒ»×é View ¿Ø¼þ£¬ÆäÖÐÿ¸ö View ¿Ø¼þ¶¼°üº¬×ӿؼþ¡£È»ºó£¬Ó¦ÓóÌÐò¿É¸ù¾ÝÓû§±êʶ¡¢Óû§Ê×Ñ¡ÏîÒÔ¼°ÔÚ²éѯ×Ö·û´®²ÎÊýÖд«µÝµÄÐÅÏ¢µÈÌõ¼þ£¬Ïò¿Í»§¶Ë³ÊÏÖÌض¨µÄ View ¿Ø¼þ¡£Ò²¿ÉÒÔʹÓà MultiView ¿Ø¼þ´´½¨Ïòµ¼¡£ÕâÖÖÇé¿ö ......
ÓÉÓÚÒ³Ãæ¿Ø¼þµÄʼþÒýÆðµÄpostback»Ø·¢£¨±ÈÈçµã»÷ʼþ£©´¦Àí³ÌÐò·¢ÉúÔÚÓû§¿Ø¼þ³õʼ»¯Ê¼þ£¨onload£©Ö®ºó£¬ËùÒÔÒªÏëͨ¹ýµã»÷ʼþ´¦Àíº¯ÊýÀ´´«µÝÖµµ½Óû§¿Ø¼þ£¬±ØÐëÒªÔÚÒ³ÃæµÄonloadÖд«Öµ if(!page.IsPostBack) { Ò³Ãæ³õʼ»¯£º// } else { ´«µÝ²ÎÊýµ½Óû§¿Ø¼þ´¦Àí³ÌÐò£¨£© ......
Panel Web ·þÎñÆ÷¿Ø¼þÔÚ ASP.NET ÍøÒ³ÄÚÌṩÁËÒ»ÖÖÈÝÆ÷¿Ø¼þ£¬Äú¿ÉÒÔ½«ËüÓÃ×÷¾²Ì¬Îı¾ºÍÆäËû¿Ø¼þµÄ¸¸¼¶¡£
Ò»¡¢±³¾°
¿ÉÒÔ½« Panel ¿Ø¼þÓÃ×÷ÆäËû¿Ø¼þµÄÈÝÆ÷¡£µ±ÒÔ±à³Ì·½´´½¨ÄÚÈݲ¢ÐèÒªÒ»ÖÖ½«ÄÚÈݲåÈëµ½Ò³Öеķ½·¨Ê±£¬´Ë·½·¨ÓÈΪÊÊÓá£ÒÔϲ¿·ÖÃèÊöÁË¿ÉÒÔʹÓà Panel ¿Ø¼þµÄÆäËû·½· ......
VS2005µ÷ÊÔasp.net¶Ë¿ÚºÅ³ö´íÎÊÌâµÄ½â¾ö·½°¸
ÔÚWindows Server 2003ÓÃvs2005 sp1µ÷ÊÔAsp.net³ÌÐòµÄʱºò£¬Í»È»Ò³Ãæ²»ÄÜÏÔʾ³öÀ´£¬ÀÏÊÇÏÔʾ“ÍøÒ³ÎÞ·¨ÏÔʾ”µÄÒ³Ã棬ÎÞÄÎÓÃfirefoxµ÷ÊÔÁËÒ»¶Îʱ¼ä¡£
È»ºó½ñÌìÓÃieµ÷ÊÔµÄʱºò·¢ÏÖ£ºIEµØÖ·À¸ÀïÃæÏÔʾ¶Ë¿ÚºÅºÍ×ÀÃæÈÎÎñÀ¸ÓÒϽǓASP.NET Deve ......