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

asp.netÖÐÈçºÎʹÓÃ΢ÈíµÄURLRewriter½øÐÐurlÖØд

asp.netÖÐÈçºÎ½øÐÐurlÖØд£¬½ñÌìÑо¿ÁËÒ»ÌìÕâ¸öÎÊÌâ
ÏëʵÏÖÖîÈ磺http://www.51cto.com/2008/2/2
http://www.51cto.com/default.html
µÈÕâÖÖurl
µ±È»£¬³ÌÐòÖ±½ÓÉú³É¾²Ì¬Ò³Ãæ¿ÉÒÔʵÏÖµÄ
µ«ÊÇÄÇÑùÒªÉú³ÉºÜ¶àÕâÖÖÒ³ÃæÒÔ¼°Îļþ¼Ð
¶øÇÒÔÚÊý¾ÝÁ¿´óµÄÇé¿öÏÂÉú³ÉÊǺÜÀË·Ñʱ¼äµÄ
ÔÚÕâÖÖÇé¿öϾÍҪʵÏÖurlÖØдÁË£¬µ±È»¾ÍºÜ¶àÖÖ·½·¨
ÏÂÃæ½éÉܵÄÊÇ΢ÈíµÄURLRewriter·½·¨
1.Ê×ÏÈÏÂÔØURLRewriter.dll£¬ÏÂÔØÖ®ºóÖ±½Ó¸´ÖƵ½ÄãµÄÍøÕ¾µÄbinĿ¼ÖÐ
2.ÅäÖÃÄãµÄweb.configÎļþ
ÔÚ<configuration>½ÚµãϼÓ
<configSections>
    <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
  </configSections>
<RewriterConfig>
    <Rules>
     <!--Ò»ÏÂÈý¸öÊÇÎÒ×Ô¼ºÐ´µÄ²âÊԵģ¬µ±È»Äã¿ÉÒÔдºÜ¶à¸ö -->
     <!--Õâ¸öÊÇ°Ñhttp://localhost:2001/default.aspx?id=1 Éú³Éhttp://localhost:2001/d1.aspx ÕâÖÖÒ³Ãæ -->
      <RewriterRule>
        <LookFor>~/d(\d{0,5})\.aspx</LookFor>
        <SendTo>~/default.aspx?ID=$1</SendTo>
      </RewriterRule>
    <!--Õâ¸öÊÇ°Ñhttp://localhost:2001/article.aspx?id=1 Éú³Éhttp://localhost:2001/1/a.html ÕâÖÖÒ³Ãæ -->
      <RewriterRule>
        <LookFor>~/(\d{0,5})/a\.html</LookFor>
        <SendTo>~/article.aspx?id=$1</SendTo>
      </RewriterRule>
    <!--Õâ¸öÊÇ°Ñhttp://localhost:2001/test.aspx?id=1 Éú³Éhttp://localhost:2001/1/ ÕâÖÖÒ³Ãæ -->
      <RewriterRule>


Ïà¹ØÎĵµ£º

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

Ö±½ÓÖØдRenderʼþ
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            StringWriter sw = new StringWriter() ;
  &nb ......

ASP.NET(C#)ÖÐstringÓëstringBuilderµÄÇø±ð

 
ÔÚÏàͬ×Ö·û´®µÄÐí¶à²Ù×÷ÉÏ£¬Ê¹ÓÃStringBuilderÀà»á±ÈʹÓÃString¶ÔÏó¸üÓÐЧÂÊ¡£
 
 
 µ±Äã¶ÔÒ»¸östring¶ÔÏó¸³ÖµÊ±£¬Õâʱ»áÉú³ÉÒ»¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬Èç¹ûÄ㸳ֵ¶à´ÎµÄ»°ÔÚϵͳÖоͻᱣ´æ¶à¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬»á¶Ôϵͳ×ÊÔ´Ôì³ÉºÜ´óµÄÀË·Ñ£¬µ«ÊÇStringBuilder²»»á³öÏÈÉÏÊöÇé¿ö
StringÊý¾ÝÀàÐÍ´ú±íµÄ ......

ASp.NETѧϰÍø(www.17aspx.com)ÉÏÏßÁË

¾­¹ýÒ»¸ö¶àÔµÄ×¼±¸£¬ÎÒµÄСվASP.NETѧϰÍø(www.17aspx.com)ÖÕÓÚÉÏÏßÁË¡£½çÃæͼÈçÏ£º
ASP.NETѧϰÍø(www.17aspx.com)£¬ÎªASP.NETѧϰÕßÌṩ½Ì³Ì¡¢Ê¾Àý¡¢Ô´Âë¡¢¹¤¾ßµÈѧϰ×ÊÁÏ£¬Íƶ¯ASP.NETѧϰÕßÖ®¼äµÄ½»Á÷¡£Éæ¼°ASP.NET¡¢ASP.NET MVC¡¢LINQ¡¢VS2010¡¢WPF¡¢Silverlight¡¢C#3.5µÈ·½Ãæ¡£ ......

ASP.NETÖÐÈý²ã½á¹¹µÄÔËÓÃ

ASP.NETÖеÄÈý²ã½á¹¹·ÖΪ±íʾ²ã£¨UI£©£¬ÒµÎñÂß¼­²ã£¨BLL£©£¬Êý¾Ý·ÃÎʲ㣨Models£¬DAL£¬IDAL,DALFactory£¬DB£©£¬ÏÂÃæÎÒÀ´ËµËµÎÒ¶ÔѧϰÈý²ã½á¹¹µÄÔËÓá£
Ê×ÏÈÎÒ¸ø´ó¼Ò˵˵ÕâÈý²ã¶¼ÊÇʲôÒâ˼¡£
1.       ±íʾ²ã£ºwebÏîÄ¿×ÔÈ»ÊÇÓ¦ÓóÌÐòµÄ±íʾ²ã£¬¾ÍÊÇ·ÃÎʵÄÕ¾µã£¬ËüÌṩËùÓÐÓëÓû§½øÐн»»¥µÄ ......

asp.netÖг£ÓõÄÓÅ»¯ÐÔÄܵķ½·¨

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