asp»º´æÇåÀíÓï¾ä˵Ã÷£º
<%
Response.Buffer = True
'Ò»°ãÇé¿öÏ£¬µ±Óû§ÇëÇóWEB·þÎñÆ÷ʱ£¬·þÎñÆ÷°ÑÇëÇó»Ø¸´¸ø¿Í»§¶Ë¡£ÔÚ¿Í»§¶Ë£¬ä¯ÀÀÆ÷°Ñ»º´æ×÷ΪһÖÖ¼Ó¿ìËٶȵIJßÂÔ£¬¾ÍÊǵ±ÇëÇóʱÏȼì²é»º´æµÄÇé¿ö£¬Èç¹ûÓоÍÖ±½Óµ÷»º´æÁË£¬¶ø²»ÇëÇó·þÎñÆ÷ÁË¡£
'ÔÚWEB³ÌÐòÉè¼ÆÖУ¬ÓÐʱΪÁË·ÀÖ¹Öظ´µÄÌá½»»òÕßÑϸñµÄ´ÎÐòµÈ£¬±ØÐëÈÃÓû§µÄÊý¾ÝÁ¢¼´ÔÚʹÓúó¾Í¹ýÆÚ£¬µ±Óû§ºóÍËʱ¾ÍÏÔʾ¹ýÆÚ¶ø²»ÄܼÌÐøʹÓá£Ò»°ã£¬response.expiresдÔÚÒ³ÃæµÄ×îÉ϶ˣ¬ºóÃæ¸úµÄÊǹýÆÚµÄʱ¼ä£¬0£¬-1±íʾÁ¢¼´¹ýÆÚ¡£
'aspûÓжàÐÐ×¢ÊÍ£¬Ö»ÄÜÿÐÐ×¢ÊÍ£¬×î¶àÆðÐпªÍ·×¢ÊÍÄÚÈÝ¿ÉÒÔ¶àЩ£¬ÀýÈç±¾3ÐÐ×¢ÊÍ£¬Õâ3ÐÐ×¢ÊÍÏÂÃæÒ»ÐÐÄÚÈÝ¡£
'Response.Expires ä¯ÀÀÆ÷¿ÉÒÔ»º´æµ±Ç°Ò³µÄʱ¼ä³¤¶È£¬ÒÔ·ÖÖÓΪµ¥Î»¡£
Response.Expires = -1
'Response.ExpiresAbsolute ä¯ÀÀÆ÷²»ÄÜÔÙ»º´æµ±Ç°Ò³µÄÈÕÆÚºÍʱ¼ä¡£ÔÚδµ½ÆÚ֮ǰ£¬¿ÉÒÔ·µ»Ø¡£Èç¹ûδָ¶¨Ê±¼ä£¬¸ÃÖ÷Ò³ÔÚµ±ÌìÎçÒ¹µ½ÆÚ£»Èç¹ûδָ¶¨ÈÕÆÚ£¬Ôòµ½µ±ÌìÖ¸¶¨Ê±¼äµ½ÆÚ¡£
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
'Response.CacheControl Ö¸Ã÷ÊÇ·ñProxy·þÎñÆ÷ÄÜ»º´æActiveServerPage¡£È±Ê¡Ê±£¬ÆäֵΪFALSE¡£µ±ÉèÖÃÆäÊôÐÔΪPublicʱ£¬Proxy·þÎñÆ÷¿ÉÒÔ»º³åÓÉAsp²úÉúµÄÊä³ö¡£
'Cache-ControlÖ¸¶¨ÇëÇóºÍÏìÓ¦×ñѵĻº´æ»úÖÆ¡£ÔÚÇëÇóÏûÏ¢»òÏìÓ¦ÏûÏ¢ÖÐÉèÖÃCache-Control²¢²»»áÐÞ¸ÄÁíÒ»¸öÏûÏ¢´¦Àí¹ý³ÌÖеĻº´æ´¦Àí¹ý³Ì¡£
'no-cacheָʾÇëÇó»òÏìÓ¦ÏûÏ¢²»ÄÜ»º´æ
Response.CacheControl = "no-cache"
'ÉÏÃæ4ÐÐaspº¬ÒåÊÇ£ºÎÒÃÇÔÚ½øÐÐÊý¾Ý¿âÌí¼Ó²Ù×÷µÄʱºò£¬Èç¹ûÔÊÐíºóÍË£¬¶øÕýÇÉÓÖË¢ÐÂÁËÒ³Ã棬¾Í»áÔÙ´ÎÖ´ÐÐÌí¼Ó²Ù×÷£¬ÎÞÒÉÕâ²»ÊÇÎÒÃÇÒªµÄ£¬½ûÖ¹»º´æµÄ´úÂ룬ÓÐʱ²¢²»¿É¿¿£¬ÕâʱÄãÖ»ÒªÔÚ²Ù×÷µÄÒ³Ãæ¼ÓÉϾͿÉÒÔÁË¡£
%>
Ïà¹ØÎĵµ£º
»¨ÁËÁ½¸öÍíÉÏ°ïÅóÓѽ«Ò»¸öasp¿ª·¢µÄÍøÕ¾´ÓACCESSÊý¾Ý¿âתÏòSQL SERVER 2000. ÍøÉϲéÁËЩ×ÊÁÏ£¬¼ÓÉÏ×Ô¼ºµÄ¾Àú£¬×ܽ᣺
1¡¢Ê×ÏÈ¿´asp µÄ³ÌÐòÖÐÊÇ·ñÓÐ on error resume next; Èç¹ûÓÐ,ÏÈ×¢Ê͵ô¡£·ñÔòºÜ¶à´íÎóÎÞ·¨±©Â¶³öÀ´
2¡¢´´½¨SQL SERVER Êý¾Ý±í¡£ ʹÓÃSQL SERVER 2000×Ô´øµÄÊý¾Ýµ¼ÈëÏòµ¼£¬½«ACCESSÊý¾Ý¿âÖеıí½á¹¹£¬ÒÔ¼ ......
ASPÍøÕ¾³ÌÐòÔÚ¹úÄÚÔËÓúܹã,µ«ÊÇÀàËÆÓÚ im286.asp?id=20050307213811ÕâÑùµÄURLÓе㲻ÀûÓÚËÑË÷ÒýÇæµÄÊÕ¼,Ò²¾ÍÊÇ˵²»·ûºÏÓѺÃURL(URLs- Friendly)µÄ±ê×¼,ÄÇôÎÒÃÇÓÃISAPI_Rewrite´òÔìÒ»¸öClean URL,
1.ÏÂÔØISAPI_Rewrite.ISAPI_Rewrite ·Ö¾«¼ò(Lite)ºÍÍêÈ«(Full)°æ.¾«¼ò°æ²»Ö§³Ö¶Ôÿ¸öÐéÄâÖ÷»úÕ¾µã½øÐÐÖØд,Ö»ÄܽøÐÐÈ«¾Ö´¦À ......
×î½ü×öÒ»¸öÓÃasp×öµÄÍøÕ¾ºǫ́µÄÊý¾Ýµ¼³ö¹¦ÄÜʱ,google,baiduÁ˺ܶà,µ«ÊǶàÊý¶¼ÊÇתÔØ,´úÂë´ó¸Å¶¼Ò»Ñù,µ«ÊǾÍÊDZ¨´í,×îºóÓÐÈË˵ͨ¹ýÉèÖÃMIMEÀàÐͺͽ¨Á¢Ä£°å,×îºóÕûÀí,²âÊÔÎÊÌâÖÕÓÚ½â¾ö.¹Ø¼üµÄµØ·½ÓÐÒÔϼ¸µã:
1):MIMEÀàÐÍÒªÉèÖÃÕýÈ·,ÈçÒª°ÑDBÖбí(»ò±íÖÐÖ¸¶¨×Ö¶Î)µÄÊý¾Ýµ¼³ö³Éexel¸ñʽʱ,Í·²¿µÄMEMIÀàÐ͵ÄÉèÖÃÊÇ:
<%
......
Ò»¡¢Ê¹ÓÃOWC
¡¡¡¡Ê²Ã´ÊÇOWC£¿
¡¡¡¡OWCÊÇOffice Web CompentµÄËõд£¬¼´MicrosoftµÄOffice Web×é¼þ£¬ËüΪÔÚWebÖлæÖÆͼÐÎÌṩÁËÁé»îµÄͬʱҲÊÇ×î»ù±¾µÄ»úÖÆ¡£ÔÚÒ»¸öintranet»·¾³ÖУ¬Èç¹û¿ÉÒÔ¼ÙÉè¿Í»§»úÉÏ´æÔÚÌض¨µÄä¯ÀÀÆ÷ºÍһЩ¹¦ÄÜÇ¿´óµÄÈí¼þ£¨ÈçIE5ºÍOffice 2000£©£¬ÄÇô¾ÍÓÐÄÜÁ¦ÀûÓÃOffice Web×é¼þÌṩһ¸ö½»»¥Ê½Í¼Ðοª ......