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

Asp.NetÏÂͨ¹ýÇл»CSS»»Æ¤·ô

Ö±½ÓÖØдRenderʼþ
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            StringWriter sw = new StringWriter() ;
            HtmlTextWriter htmlWriter = new HtmlTextWriter(sw) ;
            base.Render(htmlWriter) ;
            //µ±Ç°Óû§Ñ¡ÔñµÄ·ç¸ñcss
            string css = "<link href=\"css url\" rel=\"stylesheet\" type=\"text/css\">" ;
            string html = sw.ToString() ;
            int startPoint = html.IndexOf("</head>", StringComparison.CurrentCultureIgnoreCase);
            if (startPoint > 0)
            {
                html = html.Insert(startPoint, css);
            }
            writer.Write(html) ;
        }
°ÑÕâ¸ö·ÅÔÚÿ¸öÒ³ÃæµÄ»ùÀàPageBaseÀï¡£ÄǾͷ½±ã¶àÁË¡£
µ±È»£¬Èç¹û²»ÏëÔÚÈÃÿ¸öpage¶¼¼Ì³Ð×Ô¶¨ÒåµÄ»ùÀàµÄ·½Ê½£¬ÄÇÒ²¿ÉÒÔͨ¹ýÔÚHttpModuleÀïд¡£Ò²ºÜ·½±ã.
Ò»´¦Ð´ºÃ£¬Ò³Ò³ÊÜÓÃѽ
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/21aspnet/archive/2009/02/02/3858024.aspx


Ïà¹ØÎĵµ£º

ʲôÊÇAsp.NetÓ¦ÓóÌÐò

ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virt ......

ASP.net

C#:³ÉÔ±±äÁ¿Ê××Öĸ´óд¶øÇÒÇ°Ãæ¼ÓÏ»®Ïß
   1.Á¬½Ó¶ÔÏó¾²Ì¬Óë·Ç¾²Ì¬ÎÊÌâ
   2.Êý¾Ý·ÃÎÊÀàΪʲô²»ÄÜÅÉÉúÓëDBConnection
   3.CatchµÄ×÷Óã¬ÒÔ¼°ÎªÊ²Ã´¿ÉÒÔÔÚÕâÀïÊ¡µô
   4.ÔÚÊý¾Ý·ÃÎÊ·½·¨ÖУ¬ÎªÊ²Ã´²»Ö±½ÓʵÀý»¯     List<NationData> list;
  ......

Asp.net ʹÓà AXAJ¾Ö²¿Ë¢ÐÂÎÞЧµÄ½â¾ö·½·¨

<httpHandlers>
<remove verb="*" path="*.asmx"/>
<!--
<add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0 ......

XPÏÂasp.netÓû§µÄÉèÖÃÎÊÌâ

 1.    ÔÚXPÏ£¬IIS·¢²¼asp.net³ÌÐòʱ£¬ÓÐʱ»áÓöµ½±¨´í“µ±Ç°Óû§ÎÞ·¨·ÃÎÊIISÔªÊý¾Ý¿â”»ò“ASP.NETÓû§ÎÞ·¨·ÃÎÊÖ¸¶¨Ä¿Â¼”£¬ÎÊÌâµÄ½â¾ö·½·¨ÈçÏ£º
       1.ÔÚÄãËùÐèÒª·ÃÎʵÄ×ÊԴĿ¼ÉÏÓÒ¼üÑ¡Ôñ “¹²ÏíºÍ°²È«”£¬È»ºóµã»÷“°²È«”ҳǩ¡ ......

ASP.NET³£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨

1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ