ÓÃISAPI_RewriteʵÏÖaspα¾²Ì¬
ASPÍøÕ¾³ÌÐòÔÚ¹úÄÚÔËÓúܹã,µ«ÊÇÀàËÆÓÚ im286.asp?id=20050307213811ÕâÑùµÄURLÓе㲻ÀûÓÚËÑË÷ÒýÇæµÄÊÕ¼,Ò²¾ÍÊÇ˵²»·ûºÏÓѺÃURL(URLs- Friendly)µÄ±ê×¼,ÄÇôÎÒÃÇÓÃISAPI_Rewrite´òÔìÒ»¸öClean URL,
1.ÏÂÔØISAPI_Rewrite.ISAPI_Rewrite ·Ö¾«¼ò(Lite)ºÍÍêÈ«(Full)°æ.¾«¼ò°æ²»Ö§³Ö¶Ôÿ¸öÐéÄâÖ÷»úÕ¾µã½øÐÐÖØд,Ö»ÄܽøÐÐÈ«¾Ö´¦Àí.²»¹ý¶ÔÓÚÓзþÎñÆ÷µÄÅóÓÑ,¾«¼ò°æÒ²¾Í¹»À².¾«¼ò°æ ÏÂÔصØÖ·:http://www.helicontech.com/download/,¾ÍÊÇÄÇLite Version (free)À².
2.°²×°.msiµÄÎļþ,ºÍ×°Ò»°ã³ÌÐòÒ»Ñù×°¾Í¿ÉÒÔÁË,°³¾Í×°ÔÚD:\ISAPI_Rewrite.
3.½ÓÏÂÀ´Ò»²½±È½ÏÖØҪŶ,¿´×Ðϸà¶.´ò¿ªInternet ÐÅÏ¢·þÎñ,ÓÒ¼ü,webÕ¾µãÊôÐÔ,µçISAPIɸѡÆ÷Ñ¡Ï.Ìí¼ÓɸѡÆ÷,Ãû³Æ×Ô¼ºÌî,·¾¶×Ô¼ºÖ¸¶¨ISAPI_Rewrite.dll,È»ºóÈ·¶¨.
4.À´²âÊÔÒ»ÏÂ.н¨Ò»¸ö1ting.asp,ÀïÃæдÉÏ
<%=request.querystring("inso")%>
,Ч¹û¾ÍÊÇÖ´ÐеÄʱºò1ting.asp?inso=*ä¯ÀÀÆ÷ÏÔʾ*.
5.ÕâÒ»²½ºÜÖØҪŶ,¿ªÊ¼Ìí¼Órewrite¹æÔò.ÕýÔò,ºÃÍ·Í´,ÐÒ¿÷Õâ¸öÀý×ӱȽϼòµ¥.
ÕÒµ½ISAPI_RewriteĿ¼,°Ñhttpd.iniµÄÖ»¶ÁÊôÐÔÈ¥µô,´ò¿ª±à¼.ÎÒÃÇÒª°Ñ1ting.asp?inso=im286Ó³Éä³ÉΪ1ting-im286.htmlÕâÑùµÄÀàÐÍ,ÐèÒªÔÚhttpd.iniÀï¼ÓÉÏÕâôһÐÐ:
RewriteRule /1ting-([0-9,a-z]*).html /1ting.asp\?inso=$1
±£´æ.
.À´À´À´,µ½ä¯ÀÀÆ÷Àï²é¿´Ò»ÏÂЧ¹û°É.ÊäÈëhttp://127.0.0.1/1ting.asp?inso=im286 ºÍ http://127.0.0.1/1ting-im286.html,ÏÔʾµÄÄÚÈÝÊDz»ÊǶ¼ÊÇim286?Õâ¾ÍÖ¤Ã÷³É¹¦À²!
ºÙºÙ,1ting-im286.htmlÕâÑùµÄÒ³ÃæÒª±È1ting.asp?inso=im286ÈÝÒ×ÊÕÈë,ËùÒÔÏÖÔÚ»¹ÔÚÓö¯Ì¬·½Ê½µÄÅóÓÑ¿ÉÒÔ³¢ÊÔÒ»ÏÂÕâÑùµÄ¾²Ì¬Ó³ÉäЧ¹û. IIS RewriteÒ²¿ÉÒÔʵÏÖÕâÑùµÄ¹¦ÄÜ¡£
ÍøÕ¾ÀïÃæµÄÁ´½ÓÐèÒª×Ô¼ºÊÖ¹¤¸Ä³É¾²Ì¬µØÖ·¸ñʽ
ISAPI_ReWrite ÎÞ·¨Ö§³Öºº×Ö´«µÝ,ʹÓÃserver.URLEncode()±àÂëһϾͿÉÒÔÁË£¬±ä³É%f1%f3 ÕâÑù
[\u4e00-\u9fa5] ÔÚISAPI_ReWriteÎÞЧ
ÕýÔò±í´ïʽ²Î¿¼£ºhttp://www.zhouhaihe.com/blog/article.asp?id=78
ÐÅÏ¢À´Ô´£ºÉîÛÚÍøÕ¾½¨Éè[www.wl168.com]
ÔÎĵØÖ·£ºhttp://www.wl168.com/news_show.asp?ArticleID=44
Ïà¹ØÎĵµ£º
ͨ¹ýʹÓÃÑéÖ¤¿Ø¼þ£¬¿ÉÒÔÏò ASP.NET ÍøÒ³ÖÐÌí¼ÓÊäÈëÑéÖ¤¡£ÑéÖ¤¿Ø¼þΪËùÓг£Óõıê×¼ÑéÖ¤ÀàÐÍ£¨ÀýÈ磬²âÊÔij·¶Î§ÄÚµÄÓÐЧÈÕÆÚ»òÖµ£©ÌṩÁËÒ»ÖÖÒ×ÓÚʹÓõĻúÖÆ£¬ÒÔ¼°×Ô¶¨Òå±àдÑéÖ¤µÄ·½·¨¡£´ËÍ⣬ÑéÖ¤¿Ø¼þ»¹ÔÊÐí×Ô¶¨ÒåÏòÓû§ÏÔʾ´íÎóÐÅÏ¢µÄ·½·¨¡£ÑéÖ¤¿Ø¼þ¿ÉÓë ASP.NET ÍøÒ³ÉϵÄÈκοؼ ......
˵ÔÚÇ°ÃæµÄ»°£º
Òª·ÀÊý¾Ý¿âľÂí£¬Æäʵ×î¼òµ¥²»¹ý£¬±¾ÈËÈÏΪ£¬ÍøÉÏËùνµÄ×¢Èë·½·¨£¬¶¼ÊÇЩС¶ù¿Æ¡£Ö»ÒªÄã²»ÈÃÊý¾Ý¿âÔËÐУ¬Ëü×¢ÈëÁËASPľÂíÓкÎÓã¿£¡Ö»ÒªÄãÊä³öʱÓÐÑϸñµÄ¹ýÂË£¬Ëü×¢ÈëÁËJS´úÂëÓкÎÓã¿£¡
¾ßÌå·½·¨ÈçÏ£º
Ò»¡¢°ÑÊý¾Ý¿â¸ÄΪASP¸ñʽ£¬²¢¼ÓÈëÒ»¸ö±í£¬ÀïÃ潨¸ö×ֶΣ¬¼ÓÈëһЩIISϵͳ¼¶µÄ´íÎó´úÂë»òOleÊý¾Ý£¬¼´ ......
1. ÏÖÔÚµÄÈÕÆÚʱ¼äÃüÁîÊÇ <%=now%> ¼´¿É
2.ASPÈ¡µÃ±í¸ñ(from)Êý¾ÝÊäÈëµÄ·½·¨£¬ÊÇʹÓÃÒ»¸öÄÚÖõĶÔÏó(object)—Requect, ËüÒÔget,post¶øÒì¡£
3.ÈôÒª×Ô¼ºÓÃVB»òÆäËüÓïÑÔ±àд£¬.dllÎļþ¹©ASPʹÓÃÐ轫DLLÎļþ×¢²á·½¿É£ºDOSÏÂÊäÈë regsbr32 *.dll
4.ÏÔʾÎå¸öÖظ´µÄ¾ä×Ó£¬×ÖÌåÔ½À´Ô½´ó <% for i=1 to 5 %> &l ......
»¨ÁËÁ½¸öÍíÉÏ°ïÅóÓѽ«Ò»¸öasp¿ª·¢µÄÍøÕ¾´ÓACCESSÊý¾Ý¿âתÏòSQL SERVER 2000. ÍøÉϲéÁËЩ×ÊÁÏ£¬¼ÓÉÏ×Ô¼ºµÄ¾Àú£¬×ܽ᣺
1¡¢Ê×ÏÈ¿´asp µÄ³ÌÐòÖÐÊÇ·ñÓÐ on error resume next; Èç¹ûÓÐ,ÏÈ×¢Ê͵ô¡£·ñÔòºÜ¶à´íÎóÎÞ·¨±©Â¶³öÀ´
2¡¢´´½¨SQL SERVER Êý¾Ý±í¡£ ʹÓÃSQL SERVER 2000×Ô´øµÄÊý¾Ýµ¼ÈëÏòµ¼£¬½«ACCESSÊý¾Ý¿âÖеıí½á¹¹£¬ÒÔ¼ ......
Ò»¡¢Application¶ÔÏó
Application¶ÔÏóÊǸöÓ¦ÓóÌÐò¼¶µÄ¶ÔÏó£¬ÓÃÀ´ÔÚËùÓÐÓû§¼ä¹²ÏíÐÅÏ¢£¬²¢¿ÉÒÔÔÚWebÓ¦ÓóÌÐòÔËÐÐÆÚ¼ä³Ö¾ÃµØ±£³ÖÊý¾Ý¡£
ApplicationµÄÊôÐÔ£º
Application¶ÔÏóûÓÐÄÚÖõÄÊôÐÔ£¬µ«ÊÇÎÒÃÇ¿ÉÒÔ×ÔÐд´½¨ÆäÊôÐÔ¡£
<% Application(”ÊôÐÔÃû”)=Öµ %>
´ó²¿·ÖApplication±äÁ¿¶¼¡¡´æ·ÅÔÚCon ......