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

ASP.NET Ê÷½á¹¹¼°È¨ÏÞÊ÷µÄÉè¼Æ

 
1£®Ê÷ÐνṹµÄÉè¼Æ
ÔÚ¿ª·¢ASP.NETµÄÏîÄ¿ÖУ¬ÓÐÐí¶àÏîÄ¿Óõ½µÄÊ÷Ðνṹ£¬ÆäÖÐÓÐЩÊ÷ÐνṹÏà¶Ô¸´ÔÓ£¬Ò²Óмòµ¥µÄ£¬µ«ÎÞÂÛÊǼòµ¥µÄÊ÷Ðνṹ»¹ÊǸ´ÔÓµÄÊ÷Ðνṹ£¬ÓÐןõĽṹ¶ÔÓÚÐÔÄܺÍÎȶ¨ÐÔ¶¼ÓÐןܴóµÄ×÷ÓᣱÈÈçÄãµÄÊ÷½á¹¹µÄÊý¾ÝºÜ´ó£¬Èç¹ûÊDzÉÓñȽÏËÀµÄ·½Ê½Ò»´ÎÐÔ¼ÓÔؽøÀ´ÄÇôÄãÔÚ¼ÓÔØÕâ¿ÃÊ÷µÄʱºò¾ÍÊÇÏ൱µÄºÄʱÁË£¬ÐÔÄܾʹó´óµÄ´òÁËÕÛ¿Û¡£
ÎÒÔÚÉè¼ÆÕâ¿ÃÊ÷ʱÊ×ÏȼÓÔصÄÊÇÒ»¼¶µÄ½Úµã£¬¼´ÏëÒªÏÔʾµÄ×îÍâ²ãµÄ½Úµã£¬È»ºóͨ¹ýµã»÷Õ¹¿ª½ÚµãµÄʼþÈ¥¼ÓÔØÆä×ӽڵ㣬¼´¿ÉÒÔ¸ù¾ÝÓû§µÄÐèÒª²ÅÈ¥¼ÓÔØÏà¹ØµÄ×ӽڵ㣻¿ÉÄÜÔÚ½ÚµãÖÐÎÒÃÇ¿ÉÄÜ»áÔÚ½ÚµãÖÐÉè¼Æ½ÚµãµÄÓÒ¼ü²Ëµ¥£¬±ÈÈç“ˢД½ÚµãµÄ²Ëµ¥µÈ£¬ËùÒÔË¢ÐÂÒ²ÊÇÖØмÓÔؽڵãµÄÒ»¸ö¹ý³Ì£¬ÏÂÃ潫·Ö±ðͨ¹ýͼʾºÍ¼òµ¥µÄÀý×ÓÈ¥½²½â¡£
ÏÂÃ潫ÒÔÒ»¿ÅÉÌÆ·µÄÊ÷À´¼òµ¥½²½â£¬±ÈÈçÉÌÆ·ÓÐ×ŵçÆ÷¡¢Îľߡ¢Ê³Æ·µÈÀàÐÍ¡£
    
1)        Ò³Ãæ´úÂ룺
    <asp:TreeView ID="treeView" runat="server" ShowLines="true" EnableClientScript="false" Height="100%" OnTreeNodeExpanded="treeNodeExpanded">
<Nodes>
     <asp:TreeNode Text="ÉÌÆ·" Value="sp01" Expanded="true" ImageUrl="½ÚµãͼƬ"    NavigateUrl="µã»÷½ÚµãµÄÁ¬½ÓµØÖ·"></asp:TreeNode>                </Nodes>
</asp:TreeView>
2)        ºǫ́´úÂ룺
l        ³õʼ»¯½Úµã
if (!IsPostBack)
        {
            InitTreeView();

       private void InitTreeView()
{
AddCollectNode(treeView.Nodes[0]); //¼´¸ø“ÉÌÆ·”Ìí¼Ó×Ó½Úµã
}
l        Ìí¼Ó½Úµã
private void AddCollectNode(TreeNode baseNode)
{
    //Çå¿Õ¸¸½ÚµãϵÄËùÓÐ×Ó½Úµã
baseNode.ChildNodes.Clear();
//»ñÈ¡¸¸½ÚµãµÄ×ӽڵ㼯ºÏ
¡£¡£¡£¡£¡£¡£
//ÅжÏ×ӽڵ㼯ºÏÊýÊÇ·ñ´óÓÚÁ㣬¼´ÊÇ·ñ´æÔÚ×Ó½Úµã
¡£¡£¡£¡£¡£
//Èç¹û´æÔÚ×ӽڵ㣬


Ïà¹ØÎĵµ£º

Asp.net mvc

MVC(¼´Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷)
       MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),
ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller)
       MVCµÄÓŵ㣺
1¶à¸öÊÓͼ¶ÔÓ¦Ò»¸öÄ£Ð͵ÄÄÜÁ¦
......

ASP.NET ÈçºÎ£ºÅäÖöà¸öÕ¾µãµØͼºÍÕ¾µãµØͼÌṩ³ÌÐò


      ĬÈÏÇé¿öÏ£¬ASP.NET ÍøÕ¾µ¼º½Ê¹ÓÃÒ»¸öÃûΪ Web.sitemap µÄ XML Îļþ£¬¸ÃÎļþÃèÊöÍøÕ¾µÄ²ã´Î½á¹¹¡£µ«ÊÇ£¬Äú¿ÉÄÜҪʹÓöà¸öÕ¾µãµØͼÎļþ»òÕ¾µãµØͼÌṩ³ÌÐòÀ´ÃèÊöÕû¸öÍøÕ¾µÄµ¼º½½á¹¹¡£
ÀýÈ磬Äú¿ÉÒÔ¾ßÓÐÒýÓÃ×ÓÕ¾µãµØͼµÄÖ÷Õ¾µãµØͼ¡£Ö÷Õ¾µãµØͼ¿ÉÒÔÊÇ£º
<?xml version="1.0" encoding ......

ASP.NET AJAX ÖÐ UpdateProgress µÄ覴ü°Æä½â¾ö·½·¨


... Ç°ÑÔ
  ÔÚWebÓ¦ÓóÌÐòÖУ¬ÒýÈëAJAX£¬²»½ö¿ÉÒÔÌá¸ßÓû§ÌåÑ飨ҳÃæ¾Ö²¿Ë¢Ð£©£¬¶øÇÒ¿ÉÒÔÔÚÒ»¶¨³Ì¶ÈÉÏ£¬½µµÍWeb·þÎñÆ÷µÄ¹¤×÷¸ºÔغÍÏìӦʱ¼ä¡£
  AJAX ʹÓÃJavascript£¬ÔÚ¿Í»§¶Ë£¨ä¯ÀÀÆ÷¶Ë£©£¬Í¨¹ýHttp(s)ЭÒ飬Ïò·þÎñÆ÷¶Ë £¨Web Server£©·¢ÆðÇëÇó£»·þÎñÆ÷¸ù¾ÝÇëÇóµÄURI£¬
Íê³ÉÏàÓ¦µÄÂß¼­²Ù×÷£¬¶ûºó½«Ö´ÐÐµÄ ......

ASP.NETÖÐCookie±à³ÌµÄ»ù´¡ÖªÊ¶

¼ò½é
¡¡¡¡Cookie Ϊ Web Ó¦ÓóÌÐò±£´æÓû§Ïà¹ØÐÅÏ¢ÌṩÁËÒ»ÖÖÓÐÓõķ½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔÀûÓà Cookie ±£´æÓû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢£¬ÕâÑù£¬µ±Óû§Ï´ÎÔÙ·ÃÎÊÄúµÄÕ¾µãʱ£¬Ó¦ÓóÌÐò¾Í¿ÉÒÔ¼ìË÷ÒÔÇ°±£´æµÄÐÅÏ¢¡£
¡¡¡¡±¾ÎĸÅÒª½éÉÜ Cookie ÔÚ ASP.NET Ó¦ÓóÌÐòÖеÄÓ¦Óã¬ÎªÄúչʾÔÚ ASP.NET ÖÐÓ¦Óà Cookie ......

21ÌìѧͨASP.NET

¡¡¡¡
¡¡¡¡ÄÚÈݼò½é
¡¡¡¡±¾ÊéÊÇASP.NETµÄÈëÃŽ̡̳£ASP.NET 3.5ÊÇ΢Èí¾«ÐÄ´òÔìµÄÐÂÐ͵ÄÈí¼þ¿ª·¢Æ½Ì¨¡£¸Ãƽ̨ÊÇÔÚ.NET2.0µÄ»ù´¡ÉÏ·¢Õ¹¶øÀ´£¬ÔÚʵ¼Ê¿ª·¢ÖÐÓй㷺ӦÓᣱ¾ÊéÒ»¹²·ÖΪËÄƪ£¬µÚһƪÖ÷Òª½²½âÁËASP.NEµÄÈëÃÅ»ù´¡ÖªÊ¶£¬ÄÚÈÝ°üÀ¨´î½¨ASP.NET¿ª·¢»·¾³¡¢C#ÓïÑÔ»ù´¡¡¢ÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ¡¢ASP.NETÄÚÖöÔÏó¡¢ASP.NETҳà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ