Õ¾µãµØͼÔÚASP.NETÍøÒ³Öеĵ¼º½×÷ÓÃ
ÔÚASP.NET2.0ÖУ¬ÎªÎÒÃÇÌṩÁËÁ½ÖÖй¦ÄÜ£¬·½±ãÎÒÃÇÖÆ×÷¹²Í¬ÌØÕ÷Ò»ÖµÄÒ³ÃæºÍµ¼º½¡£ÕâÁ½ÖÖ¹¦ÄÜÊÇĸ°åÒ³ºÍÍøÕ¾µ¼º½¡£¶ÔÓÚĸ°åÒ³´ó¼ÒºÜÇå³þÁË£¬²»¹ýÔÚ×öĸ°åҳʱ£¬¾³£ÐèÒªÌí¼Óµ¼º½À¸£¬¶ÔÓÚ´Ëasp.net 2.0 ʹÎÒÃǵŤ×÷´óΪ¼ò»¯¡£Õâ±ãÊÇÕ¾µãµØͼµÄʹÓá£
¹ËÃû˼Ò壬վµãµØͼ¾ÍÊÇÔÚÕ¾µãÖÐÒýµ¼ÎÒÃÇÈ¥ÏëÈ¥ÍøÒ³µÄµØͼ¡£ËüÊÇÓɽڵãºÍ×Ó½ÚµãµÈ¹¹³ÉµÄ¡£Ê¾ÒâͼÈçÏ£º
Ìí¼ÓÕ¾µãµØͼºÍÌí¼ÓÆÕͨµÄaspÒ³ÃæÒ»Ñù£¬ÓÒ»÷µãÌí¼ÓÕ¾µãµØͼ¾Í³ÉÁË¡£¶øÀïÃæ½ÚµãµÄ±à¼ÔòÊÇʹÓÃ<siteMapNode></siteMapNode> ±êÇ©¾Í¿ÉÒÔÁË¡£Æä¹æÔòÊÇÔÚ½¨ºÃµÄÕ¾µãµØͼÖеÄ<sitemap>½ÚµãÏÂÖ»ÔÊÐí°üº¬Ò»¸ö×Ó<siteMapNode>ÔªËØ£¬²»¹ý¿ÉÒÔÔÚ¸Ã×ÓÔªËØϽ¨¶à¸ö<siteMapNode>ÅÉÉúÔªËØ¡£
Íê³ÉÎÒÃǵÄÕ¾µãµØͼºó£¬±ã¿ÉÀûÓÃasp.netµÄµ¼º½¿Ø¼þÀ´Íê³ÉÖÆ×÷µ¼º½À¸ÁË¡£ÔÚµ¼º½À¸ÖÐÎÒÃÇ¿ÉÒÔʹÓÃmenuºÍTreeView £¬¶øSiteMapPathÔòÊÇÔÚ½¨È«¾ÖºÛ¼£µ¼º½À¸Ê±²ÅʹÓõģ¬Ò»»á¶ùÔÙ̸¡£
¶ø½«µ¼º½¿Ø¼þ£¨menu ¡¢TreeViewµÈ£© ÓësiteMapÁªÏµÆðÀ´Ï൱·½±ã£¬Ö¸¶¨ÆäDataSourceidÊÇÄ㽨µÄÕ¾µãµØͼ¾Í³É¡£È»ºóÔËÐбã¿Éչʾ³öµ¼º½Ìõ£¨ÃÀ»¯»¹ÐècssÐÞÊβÅÐУ©¡£
ÄÇôʲôÊÇÈ«¾ÖºÛ¼£µ¼º½À¸ÄØ£¬Æäʵ¾ÍÊÇÖ¸ÃûÄãËùÔÚÒ³ÃæµÄ·¾¶¡£Ð§¹ûͼ£º
½¨Á¢·½·¨Êǽ«SiteMapPathÓëÕ¾µãµØͼÁªÏµÆðÀ´¡£ÁªÏµ·½·¨Í¬menuµÈ¿Ø¼þ¡£
ʹÓÃÕ¾µãµØͼÖÆ×÷µ¼º½À¸µÄºÃ´¦ÊÇ·½±ã£¬·½±ã½¨Á¢£¬·½±ã¸ü¸Ä¡£
ÔÚ×öµ¼º½À¸Ê±Ò²¿ÉÒÔ²»Ê¹ÓÃmenuºÍTreeView µÈ¿Ø¼þ£¬µ«¾¡Á¿ÒªÊ¹ÓÃÕ¾µãµØͼ£¬·ñÔò´ï²»µ½·½±ãµÄЧ¹û¡£×ÜÖ®Õ¾µãµØͼ¿ÉÒÔ·½±ãÓÚ½¨Á¢µ¼º½²Ëµ¥ºÍÈ«¾ÖºÛ¼£µ¼º½À¸¡£±¾ÎÄÖ»ÊǶÔÕ¾µãµØͼӦÓõĸÅÊö¡£¾ßÌåµÄ¼¼Êõ¹¤×÷Çë²Î¿¼£ºhttp://msdn.microsoft.com/zh-cn/dd218017.aspx
ÏÂÃæÊÇÎÒ×öµÄÒ»¸öµ¼º½À¸£¨Ô´Â룺http://download.csdn.net/source/2307723 £©£º
Ïà¹ØÎĵµ£º
web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="mymail<you@163.com>">
......
Asp.netÁ¬½ÓSQL Server2000Êý¾Ý¿âÀý³ÌÏê½â:
<%@ Import Namespace="System.Data" %>
<%@ Import NameSpace="System.Data.SqlClient" %>
<script laguage="VB" runat="server">
sub page_load(sender as Object ......
¹Ø±Õ´°Ìå
1.
this.btnClose.Attributes.Add("onclick", "window.close();return false;");
2.¹Ø±Õ±¾´°Ìå¼äÌøתµ½ÁíÒ»¸öÒ³Ãæ
this.HyperLink1.NavigateUrl = "javascript:onclick=window.opener.location.assign
......
ÏÖÔÚµÄÆóÒµ¼¶¿ª·¢ÏîÄ¿£¬ÌرðÊÇÍøÕ¾Ò»°ã¶¼»áÓõ½log¹¦ÄÜ£¬ÏëÏë´ó²¿·Ö»áÓÃEnterprise Logging Application Block µÄ¹¦ÄÜ »òÕß×Ô¼ºÐ´Ò»¸ö×é¼þ£¬¼Ç¼ϵͳÈÕ־ʼþ£¬¸üºÃµÄ¸ú×ÙÁ˽âϵͳÔËÐÐÇé¿ö, ÏÖÓÃASP.NET MVC µÄ¹ýÂËÊôÐÔʵÏÖlog¹¦ÄÜ£¡
ASP.NET MVCµÄfilter ÊÇÒ»¸öÊôÐÔ£¬¿ÉÒÔÓ¦Ó ......
URL ÖØдÊǽØÈ¡´«Èë Web ÇëÇó²¢×Ô¶¯½«ÇëÇóÖض¨Ïòµ½ÆäËû URL µÄ¹ý³Ì¡£
±ÈÈçä¯ÀÀÆ÷·¢À´ÇëÇóhostname/101.aspx £¬·þÎñÆ÷×Ô¶¯½«Õâ¸öÇëÇóÖж¨ÏòΪhttp://hostname/list.aspx?id=101¡£
urlÖØдµÄÓŵãÔÚÓÚ£º
Ëõ¶Ìurl£¬Òþ²Øʵ¼Ê·¾¶Ìá¸ß°²È«ÐÔ
Ò×ÓÚÓû§¼ÇÒäºÍ¼üÈë¡£
&nbs ......