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

asp.netÓÃurlÖØдURLReWriterʵÏÖÈÎÒâ¶þ¼¶ÓòÃû

ºÃ¾ÃûÓÐд¼¼ÊõÎÄÕÂ,Èç¹û´ó¼Ò¿´²»Ã÷°×,¾Í¶à¿´¼¸Æª,º¹,»òÕß,ÔÚÎÄÕµĺóÃæ»Ø¸´(ÕâÊÇ×îÓÐЧµÄ°ì·¨),ÎһᾡÁ¦°ïÖú´ó¼Ò½â´ðÒÉ»ó.
À´ÕÒÕâƪÎÄÕµÄ,Ó¦¸Ã¶¼ÖªµÀʲô½Ð¶þ¼¶ÓòÃû°É,·Ï»°¾Í²»ËµÁË.µ«ÊÇÌÖÂÛÇ°,ÏÈÒªÃ÷°×Ò»¸ö˼ÏëÎÊÌâ.
ºÜ¶àÅóÓÑÒ»Ö±¿¼ÂDz»Çå(ÎÒÇ°¼¸ÌìÒ²Ò»Ö±¸ã²»Ã÷°×)µÄÎÊÌâÊÇ,ÎÒ¼üÈëÒ»¸öµØÖ·ºó,ÔõôÕâ¸öurl¾Í±»ÖØдÁË?
µÚÒ»²½:ÔÚä¯ÀÀÆ÷¼üÈëÁËÒ»¸öµØÖ·,±ÈÈçhttp://blog.knowsky.com,µã»Ø³µºó,¶¼·¢ÉúÁËʲô?
ΪÁË°ÑÎÊÌâ¼òµ¥»¯,ÎÒÀ´ÕâÑù½âÊÍ:
µÚ¶þ²½:Ê×ÏÈ,¼üÈëµÄµØÖ·±»½âÎö,×îÖÕÀ´µ½ÁËһ̨web·þÎñÆ÷.½»¸øIIS´¦Àí.ÔÚ.netµÄÊÀ½çÖÐ,IIS»á°ÑÕâÑùµÄÇëÇóÔÙ½»¸øÒ»¸öweb´¦ÀíÆ÷ ´¦Àí,×îºó,¸Ã web´¦ÀíÆ÷ °Ñ´¦ÀíµÄ½á¹û·µ»Ø¸øä¯ÀÀÆ÷,ÏÔʾ¸øÓû§¿´.
Çë²»ÓúöÂÔÕâÑùÒ»¸öÎÊÌâ,µÚ¶þ²½µÄËùÓÐÊÂÇ鶼ÊÇÔÚ·þÎñÆ÷¶Ë×öµÄ.ÔÚÕâЩÊÂÇé½øÐеÄʱºò,Óû§¶ËµÄä¯ÀÀÆ÷ÉÏÃæµÄµØÖ·²»»á¸Ä±ä.¼´Ê¹×îºó web´¦ÀíÆ÷ °Ñ´¦Àí½á¹û·µ»ØÀ´µÄʱºò,ÉÏÃæµÄµØÖ·Ò²²»»á¸Ä±ä.
Ò»¿ªÊ¼¼üÈëµÄurl,Ö»ÊÇÆðÒ»¸öÇÃÃŵÄ×÷ÓÃ,ÃÅÇÃÍêÁË,×÷ÓþÍËã½áÊøÁË,Ö»ÓÐÄãµÄÑÛ¾¦¿ÉÒÔ¿´µ½ÄǸöµØÖ·,ä¯ÀÀÆ÷,·þÎñÆ÷µÈ¶¼²»ÖªµÀÕâ¸öµØÖ·.
È»ºóÒªÃ÷°×µÄÎÊÌâÊÇ,ËùνurlÖØд,Ò²Ö»ÊÇweb¿ª·¢ÈËÔ±ÖªµÀµÄÄÚÄ»Çé¿ö,Óû§¸ù±¾²»ÖªµÀ·¢ÉúÁËʲô,ËûÈÏΪ×Ô¼º¼üÈëµÄµØÖ·¾ÍÊÇÓ¦¸Ã³öÀ´ÆÁÄ»ÉÏÏÔʾµÄ½á¹û.Ò²¾ÍÊÇ˵,ÎÒÃÇÔÚÄ»ºó¿ØÖÆÒªÏÔʾµÄÄÚÈÝ.
½ÓÏÂÀ´Òª¿¼ÂǵÄÊÇ,ÔõôÑù¿ØÖÆÏÔʾµÄÄÚÈÝ?
´ÓÉÏÃæ˵µÄ¹ý³Ì,ºÜÃ÷ÏÔÒªÔÚ web´¦ÀíÆ÷ µÄ¹¤×÷ÕâÒ»²½¶¯ÊÖ½Å.
Ò»¸ö×î¼òµ¥µÄ¿¼ÂÇÊÇ,Óû§ÇÃÈëÁËÒ»¸ö¼òµ¥µÄ²»´øÈκβÎÊýµØÖ·, http://blog.knowsky.comÈ»ºóÎÒÃÇ°ÑÕâ¸öµØÖ·¸Ä³ÉÒ»¸ö·ûºÏ³ÌÐòÐèÒªµÄ´ø²ÎÊýµÄµØÖ·, http://kerry.com?lover=notus,×îºó´¦ÀíÖ®.
ËùνµÄurlÖØд,¾ÍÊÇÔÚÕâÒ»²½.
ÓÃ.netµÄÊõÓïÀ´Ëµ,ÎÒÃÇÐèÒª¸øÓ¦ÓóÌÐò×¢²áÒ»¸öhttpmodule,ÓÃÀ´´¦ÀíÌض¨µÄurl
×¢²áhttpmodule,ÔÚweb.config,
´¦Àíurl,ÔÚÎÒÃÇÌṩµÄhttpmodule³ÌÐòÖÐ
´óÌåÏ൱ÓÚÕâÑùµÄÒ»¶Î³ÌÐò
//ÓÃÎÒÃǵÄhttpmodule³ÌÐò½Ø»ñԭʼurl
String OriginalUrl=” http://blog.knowsky.com”;
//´¦Àíԭʼurl,µÃµ½×îºóÐèÒªµÄurl,ֵΪhttp://kerry.com?lover=notus
String FinalUrl=Rewrite(OriginalUrl);
// contextÖØн«urlÔÚÄÚ²¿·¢Ë͸øIIS´¦Àí
context.RewritePath(FinalUrl);
½ÓÏÂÀ´,ÎÒÃÇÀ´ÊµÏÖurlÖØд.
µÚÒ»²½:È·¶¨Òª¶ÔÄÄЩurlÖ´ÐÐÖØд,¼´Öƶ¨ÖØд¹æÔò
µÚ¶þ²½:±àдhttpmodule´¦Àí³ÌÐò
µÚÈý²½:½«±àдµÄhttpmoduleÕûºÏÈëweb³ÌÐò,¿ªÊ¼¹¤×÷.
ÉÏÃæ¾ÍÊÇurlÖØдµÄ»ù±¾ÖªÊ¶,¶øÓÃur


Ïà¹ØÎĵµ£º

ASP.NET WebÓ¦ÓóÌÐòдEventLog³ö´íµÄ½â¾ö·½°¸

×î½üÔÚ¶ÔÓ¦Ò»¸öASP.NET WebÓ¦ÓóÌÐòBugµÄʱºò£¬ÎªÁ˵÷²éÔËÐл·¾³ÖоßÌåµÄBugÓÚÊDzéÔÄÁËһϴíÎóÈÕÖ¾¡£
Õâ¸ö³ÌÐòµÄ´íÎóÈÕÖ¾ÊÇÖ±½Ó±£´æÔÚÒ»¸öÎı¾ÎļþÖеģ¬½á¹û·¢ÏÖ¾ÍËãÊdzö´íÒ²²»»áÁôÏÂÈκκۼ£¡£
Ò»µ÷ÊÔ£¬¾¹È»ÊÇ°Ñ´íÎóÈÕÖ¾µÄ±£´æ·¾¶¸øд´íÁË¡£My God£¡
°Ñ·¾¶¸ÄÁË£¬×ªÄîÒ»ÏëÏ´γö´íÔÙ²»±£´æÔõô°ì£¿Ë­ÖªµÀÕæÕýµÄ»·¾³À ......

ASP.NET,oracle¿Í»§¶ËÁ¬½Óʧ°Ü

OCIEnvNlsCreate ʧ°Ü£¬·µ»Ø´úÂëΪ -1£¬µ«´íÎóÏûÏ¢Îı¾²»¿ÉÓá£
2009-09-20 02:10
“System.Data.OracleClient ÐèÒª Oracle ¿Í»§¶ËÈí¼þ 8.1.7 »ò¸ü¸ß°æ±¾ ”
µÄ´¦Àí·½·¨Ó¦¸ÃÏàËÆ£¬Ã»¾ßÌåÊÔ¹ý¡£
¸øoracle/ora92µÄĿ¼¼ÓÉÏnetwork serviceÓû§µÄȨÏ޾ͿÉÒÔÁË¡£
·½·¨£ºÓÒ»÷ora92£¬Ñ¡ÔñÊôÐÔ£¬µã»÷“°²È«&rd ......

asp.netµ÷Óôø·µ»ØÖµ²ÎÊýµÄ´æ´¢¹ý³Ì

public static bool AddTbmember(Tbmember member, string regip)
{
bool check = false;
try
{
SqlCommand sqlcommnad = new SqlCommand("Pro_AddUsers", sqlconn.GetConn());
sqlcommnad.CommandType = CommandType.StoredProcedure; ......

asp.net¶¯Ì¬Ìí¼ÓͼƬˮӡ

web.config
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb=" ......

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

asp.netÖÐÈçºÎ½øÐÐurlÖØд£¬½ñÌìÑо¿ÁËÒ»ÌìÕâ¸öÎÊÌâ
ÏëʵÏÖÖîÈ磺http://www.51cto.com/2008/2/2
http://www.51cto.com/default.html
µÈÕâÖÖurl
µ±È»£¬³ÌÐòÖ±½ÓÉú³É¾²Ì¬Ò³Ãæ¿ÉÒÔʵÏÖµÄ
µ«ÊÇÄÇÑùÒªÉú³ÉºÜ¶àÕâÖÖÒ³ÃæÒÔ¼°Îļþ¼Ð
¶øÇÒÔÚÊý¾ÝÁ¿´óµÄÇé¿öÏÂÉú³ÉÊǺÜÀË·Ñʱ¼äµÄ
ÔÚÕâÖÖÇé¿öϾÍҪʵÏÖurlÖØдÁË£¬µ±È»¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ