Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Asp.netÔÚȨÏÞÇý¶¯Ï¶¯Ì¬Éú³É²Ëµ¥µÄÁ½ÖÖ·½·¨

ÕâЩÄÚÈݱȽϼòµ¥£¬µ«ÊDZȽÏÈÝÒ×Íü¼Ç¡£ÌØдÏÂÀ´°ïÖú¼ÇÒ䣺£¨ÕâÀïÓõÄÊÇTreeViewºÍXmlDataSource°ó¶¨µÄÀý×Ó£©
µÚÒ»ÖÖ£º¶ÔÊôÐÔµÄÖµÖ±½Ó½øÐа󶨡£
     Ê×ÏÈ £ºÀ­Ò»¸öTreeViewµ½Ò³ÃæÉÏ£¬IDÃüÃûΪ"TrvLeft"¡£È»ºóÔÚºǫ́½øÐа󶨣¬
´úÂëÈçÏ£º
     XmlDataSource XmlDb = new XmlDataSource();
        XmlDb.DataFile = "Menu.xml";
        trvLeft.DataSource = XmlDb;
        TreeNodeBinding tnb = new TreeNodeBinding();
        tnb.DataMember = "MenuItem";
        tnb.TextField = "Text";
        tnb.NavigateUrlField = "NavigateUrl";
        tnb.ImageUrlField = "ImageUrl";
        trvLeft.DataBindings.Add(tnb);
        trvLeft.DataBind();
ÆäÖÐMenu.xmlµÄÄÚÈÝÈçÏ£º
  <?xml version="1.0" encoding="utf-8" ?>
<MenuItem Text="Ö÷²Ëµ¥" NavigateUrl="Index.aspx" ImageUrl="main.gif">
  <MenuItem Text="Ò»¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif">
    <MenuItem Text="¶þ¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif"></MenuItem>
    <MenuItem Text="¶þ¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif"></MenuItem>
     </MenuItem>
</MenuItem>
<MenuItem Text="Ö÷²Ëµ¥" NavigateUrl="Index.aspx" ImageUrl="main.gif">
  <MenuItem Text="Ò»¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif">
    <MenuItem Text="¶þ¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif"></MenuItem>
    <MenuItem Text="¶þ¼¶²Ëµ¥" NavigateUrl="#" ImageUrl="Images/1.gif"></MenuItem>
     </MenuItem>
</MenuItem>
µÚ¶þÖÖ£ºµÝ¹éÊ÷²éѯ¸³Öµ£º
 public void Bind()


Ïà¹ØÎĵµ£º

ͨ¹ýASP.NET»ñÈ¡URLµØÖ·

Èç¹û²âÊÔµÄurlµØÖ·ÊÇhttp : //www.test.com/testweb/default.aspx, ½á¹ûÈçÏ£º
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.PhysicalApplicationPath: E:\WWW\testwebReq ......

Asp.NetÖÐWord,ExcelµÈoffice com×é¼þ²Ù×÷ȨÏÞµÄÎÊÌâ

½üÈÕÔÚ´ò¿ªÔ­À´Ð´µÄÒ»¸öÍøÒ³³ÌÐòÔËÐÐʱ£¬³öÏÖÁËExcel²Ù×÷ȨÏÞµÄÎÊÌ⣬¾ßÌåµÄ˵¾ÍÊÇÔÚ´úÂëÖе÷ÓÃÏÂÃæÕâ¶ÎÓëExcel²Ù×÷ÓйصÄÓï¾äʱ£¬
¡¡¡¡Application curExcelApp = new ApplicationClass();
¡¡¡¡ÌáʾȨÏÞ²»×㣬¾ßÌåµÄÌáʾÄÚÈÝÈçÏ£º
¡¡¡¡¼ìË÷ COM À๤³§ÖÐ CLSID Ϊ {00024500-0000-0000-C000-000000000046} µÄ×é¼þʱ ......

asp.netÒ³ÃæˢкóµÄ¹ö¶¯ÌõλÖò»±ä

Ö»ÐèÔÚasp.netÒ³ÃæµÄPageÖ¸ÁîÖÐÉèÖÃMaintainScrollPositionOnPostback="true"¾Í¿ÉÒÔÇáËÉʵÏÖ¡£
MaintainScrollPositionOnPostbackÊôÐÔµÄĬÈÏֵΪfalse¡£
ÁíÍâasp.netµÄpage¶ÔÏó»¹ÓÐÒ»¸öSmartNavigatorÊôÐÔ£¬Õâ¸öÊôÐÔÎÒÒ²ÊÔ¹ý¡£¡£ºÃÏñ¶ÔÓÚcssÓÐÓ°Ïì¡£Ò³Ãæ²¼¾ÖÓеã±ä»¯¡£¡£²»ÊǺܺÃʹ ......

asp.net formÑéÖ¤

Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇ¼ҳÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶Ë¡£·þÎñ¶ËÉ ......

ASP.NETÖÐÈçºÎʵÏÖFORMÈÏÖ¤µÇ¼

ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ