ASP.NET ÈçºÎ£ºÅäÖöà¸öÕ¾µãµØͼºÍÕ¾µãµØͼÌṩ³ÌÐò
ĬÈÏÇé¿öÏ£¬ASP.NET ÍøÕ¾µ¼º½Ê¹ÓÃÒ»¸öÃûΪ Web.sitemap µÄ XML Îļþ£¬¸ÃÎļþÃèÊöÍøÕ¾µÄ²ã´Î½á¹¹¡£µ«ÊÇ£¬Äú¿ÉÄÜҪʹÓöà¸öÕ¾µãµØͼÎļþ»òÕ¾µãµØͼÌṩ³ÌÐòÀ´ÃèÊöÕû¸öÍøÕ¾µÄµ¼º½½á¹¹¡£
ÀýÈ磬Äú¿ÉÒÔ¾ßÓÐÒýÓÃ×ÓÕ¾µãµØͼµÄÖ÷Õ¾µãµØͼ¡£Ö÷Õ¾µãµØͼ¿ÉÒÔÊÇ£º
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home Page" description="">
<siteMapNode title="First Level 1" description="" />
<siteMapNode title="First Level 2" description="">
<siteMapNode title="Second Level 1" description=""/>
<siteMapNode title="Second Level 2" description=""/>
</siteMapNode>
<siteMapNode siteMapFile="child.sitemap" />
</siteMapNode>
</siteMap>
×ÓÕ¾µãµØͼ¿ÉÒÔÊÇ£º
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Child First Level 1" description="">
<siteMapNode title="Child Second Level 1" description="" />
<siteMapNode title="Child Second Level 2" description="" />
<siteMapNode title="" description="" />
</siteMapNode>
</siteMap>
´ÓÁ½¸öÕ¾µãµØͼÉú³ÉµÄ²Ëµ¥½«ÏÔʾÈçÏ£º
Home Page
First Level 1
First Level 2
Second Level 1
Second Level 2
Child First Level 1
Child Second Level 1
Child Second Level 2
ÈôҪΪһ¸öÍøÕ¾ÅäÖöà¸öÕ¾µãµØͼ£¬Çë´ÓÓ¦ÓóÌÐò¸ùĿ¼ÏµÄÕ¾µãµØͼ¿ªÊ¼¡£ÔÚ Web.config ÎļþÖн«¸ùÌṩ³ÌÐòÅäÖÃΪĬÈϵÄÕ¾µãµØͼÌṩ³ÌÐò¡£È»ºó£¬Í¨¹ýÔÚ SiteMapNode ¶ÔÏóÖÐÒýÓÃ×ÓÕ¾µãµØͼ»òÌṩ³ÌÐòÀ´Á´½Óµ½Ëü
Ïà¹ØÎĵµ£º
/// <summary>
/// »ñÈ¡QQµ±Ç°×´Ì¬£¨1£ºÔÚÏߣ¬0£º²»ÔÚÏߣ¬-1£º²»´æÔÚ£©
/// </summary>
/// <param name="qq">qqºÅ</param>
/// <returns></returns>
public static int GetQQS ......
ÈçºÎ°Ñ²Ù×÷µÄÊý¾ÝÌí¼Óµ½Êý¾Ý¿âÖУ¿
н¨´¥·¢Æ÷µÄ·½·¨¼°ÔÀí£¿
½ÌʦÈçºÎÌí¼Ó(Éϱ¨)¿ÎÌ⣬ÊÇ·ñÊÇÓÃEXCEL»òÊÇÆäËûµÄ·½·¨OR add task£¨°üÀ¨ä¯ÀÀ¿ÎÌâ¡¢²éÔÄѧÉúÑ¡ÌâÇé¿ö£©£¿
½ÌʦÉóÉóºËÊÇ·ñͨ¹ý£¿
PLAN:
¸ü¸Ä¸öÈËÐÅÏ¢¡¢ÃÜÂëµÈ
½ÌʦµÇ¼¡¢Éϱ¨¿ÎÌâ ( ¼´ÊÇInsert Óï¾ä)£Û Ìí¼Ó¿ÎÌâ ¡¢¿ÎÌâä¯ÀÀ £Ý
½ÌÊ¦È ......
1. ʹÓÃQueryString±äÁ¿
¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object sende ......
MVC(¼´Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷)
MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),
ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller)
MVCµÄÓŵ㣺
1¶à¸öÊÓͼ¶ÔÓ¦Ò»¸öÄ£Ð͵ÄÄÜÁ¦
......
ÀíÂÛºÍʵ¼ù²»Ò»Ñù£¬ÀíÂÛÔٺã¬Ò²ÒªÄÜʵ¼ù²ÅÐС£
Èç¹ûÄã´ÓÀ´Ã»ÓÐд¹ý³ÌÐò£¬ÄÇô£¬ÔÚд³ÌÐò֮ǰ»¹ÊÇÏÈ¿´¿´Óï·¨Ö®ÀàµÄ»ù´¡£»Èç¹ûÄãд¹ý³ÌÐò£¬ÄÇôÄã¾Í¿ÉÒÔ±ßд³ÌÐò±ßѧϰ¡£
ÎÞÂÛÓÃʲôÓïÑÔдһ¸öÍøÕ¾£¬Æä¸ù±¾¶¼ÊDz¶à£¬Î޷ǾÍÊǶÔÊý¾Ý¿âµÄ²Ù×÷£¬Èç²åÈ롢ɾ³ý¡¢Ð޸ĺͲéѯ¡£
Àಢ²»¿ÉÅ¡£ÀàÎ޷ǾÍÊÇһЩº¯ÊýºÍÊôÐÔ£¬¶øÇÒ ......