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

Õ¾µãµØͼÔÚ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 £©£º
                                             


Ïà¹ØÎĵµ£º

ASP.NET¶¯Ì¬¼ÓÔØÓû§¿Ø¼þµÄʵÏÖ·½·¨

µÚÒ»²½£ºÀýÈçÓû§¿Ø¼þ·ÅÔÚMyList.Ascx£¬È»ºóÆäControlÖ¸ÁîÊÇ£º
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewComment.ascx.cs" Inherits="Control_ViewComment"%>
ÕâʱºòÒѾ­ÓÐÁËInherits£¬×Ô´øÁËClassName¾ÍÊÇÆäÃû³Æ£¬Èç¹ûûÓУ¬Ôò±ØÐë´´½¨ClassNameÊôÐÔ¡£
¼ÙÉèÆäÓй«¹²ÊôÐÔID¡£
µÚ¶þ²½£ ......

asp.netÍøÕ¾Ò³Ãæ¿Õ°×¹ÊÕϽâ¾ö·½·¨

°ïÈË¿´Ò»¸öÍøÕ¾£¬ÊÇghost¿Ë¡ºó³öÏÖ¿Õ°×¹ÊÕÏ£¬ÎÞÂÛÖØ×°IIS»¹ÊÇNETFrameWork¶¼²»ÄÜÕý³£½âÎöaspxÎļþÒ»Ñù£¬Óöµ½aspxÏÔʾ¾ÍÊÇ¿Õ°×Ò³Ãæ¡£
×îºó·¢ÏÖglobal.aspxµÄapplication_error´¦ÀíÖаѴíÎóÐÅÏ¢²Á³ýÁË£¬Ð޸ĻØÀ´ÈÃËüÏÔʾ¾ßÌå´íÎó¡£
·¢ÏÖÎÞ·¨cscдÈëdllÎļþµ½ÁÙʱĿ¼¡£
½â¾ö·½·¨£¬¸³ÓèNetServiceÓû§ÍêÈ«¿ØÖÆȨÏÞ£¬ÔÚ%win ......

½ÒÃØASP.NET 2.0µÄEval·½·¨

À´Ô´£ºhttp://www.pccode.net/info/2010/01/25/20100125-1220.html
ʵ¼ÊÉÏEval·½·¨ÊÇTemplateControlµÄ£¬¶øSystem.Web.UI.PageºÍSystem.Web.UI.UserControl¶¼¼Ì³ÐÓÚTemplateControl£¬ËùÒÔÎÒÃÇ¿ÉÒÔÔÚPageºÍUserControlÉÏÖ±½Óµ÷Óøö·½·¨¡£  
   
     Page.Eval·½·¨¿ÉÒÔ°ï ......

asp.netʹÓÃajaxºóÈçºÎÔÚ¿Í»§¶Ëµ¯³öÌáʾ¶Ô»°¿ò

//ƽ³£µ÷ÓÃjavascript·½·¨
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert'Weclome!!!');</script>");
±³¾°²»Îª°×É«µÄ·½·¨£º
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('Ìí¼Óʧ°Ü£¬ÇëÁªÏµ¼¼ÊõÔ±£¡') ......

ÔÚ²»Í¬°æ±¾µÄ IIS ÉÏʹÓà ASP.NET MVC

ÔÚ²»Í¬°æ±¾µÄ IIS ÉÏʹÓà ASP.NET MVC
ASP.NET MVC Framework ÒÀÀµÓÚ URL ·ÓÉ¡£ÎªÁËÀûÓà URL ·ÓÉ£¬¿ÉÄܲ»µÃ²»ÔÚ Web ·þÎñÆ÷ÉÏÖ´ÐжîÍâµÄÅäÖò½Öè¡£ÕâЩ²½ÖèÈ¡¾öÓÚ Internet Information Services (IIS) µÄ°æ±¾ºÍÓ¦ÓóÌÐòµÄÇëÇó´¦Àíģʽ¡£
IIS µÄ×îа汾ÊÇ°æ±¾ 7.0¡£IIS µÄ´Ë°æ±¾°üÀ¨ÔÚ Windows Server 2008 ÖС£»¹¿ÉÒÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ