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

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.NET ×Ô¶¨Òå ASP.NET µÇ¼¿Ø¼þµÄÍâ¹Û


      Äú¿ÉÒÔͨ¹ýÒÔÏ·½·¨×Ô¶¨Òå¶à¸ö ASP.NET µÇ¼¿Ø¼þµÄÄÚÈÝ£ºÖ¸¶¨¿Ø¼þÄ£°å²¢½«×Ô¼ºµÄ¿Ø¼þÌí¼Óµ½¿Ø¼þµÄÓû§½çÃæ (UI)£¬»òÕßÌæ»»»òÒƳý¿Ø¼þµÄÓû§½çÃæ²»ÐèÒªµÄ¿ÉÑ¡¿Ø¼þ¡£»¹¿ÉÒÔʹÓõǼ¿Ø¼þµÄÑùʽÊôÐÔÒÔ¼°Ö÷ÌâºÍÍâ¹ÛÀ´¶¨ÖƿؼþµÄÍâ¹Û¡£
 
Ò»¡¢¿É×Ô¶¨ÒåµÄµÇ¼¿Ø¼þ
¶ÔÓÚ¿ÉÒÔʹÓÃÄ£°åÌæ»» ......

¶¯Ì¬ÍøÕ¾Web¿ª·¢PHP¡¢ASP»¹ÊÇASP.NET

¡¡¡¡ÕâÊÇÒ»¸ö¾­³£±»Ìá³öµÄÎÊÌ⣬²¢ÇÒËüºÜÈÝÒ×°ÑÈËÃÇ´øÈëÕùÂÛLinux»¹ÊÇWindowsµÄÆç;¡£ÕâÑùµÄÕùÂÛÊÂʵÉÏ·´Ó³³öÁ˶ÔÓÚÏ໥¾ºÕùµÄWeb¿ª·¢¼¼ÊõÒª½øÐв¢ÐзÖÎöÊǶàôÀ§ÄѵÄÒ»¼þÊÂÇ飬¶øÕâÒ»ÄѶÈͬʱÒòΪ¿ª·¢ÈËÔ±¶ÔÈκοɱȽϲÙ×÷ϵͳµÄ²»Í¬Òâ¼û¶ø´ó´óÔö¼Ó¡£
¡¡¡¡ËùÒÔÓëÆä¼ÌÐø²ÎÓëµ½ÕâÑùµÄÕùÂÛÖУ¬ÎÒÃÇ»¹²»ÈçÀ´¿´¿´Ã¿Ò»Ïî¼¼Êõ¶Ô ......

aspÍøÕ¾ ACCESSתSQL SERVER 2000

»¨ÁËÁ½¸öÍíÉÏ°ïÅóÓѽ«Ò»¸öasp¿ª·¢µÄÍøÕ¾´ÓACCESSÊý¾Ý¿âתÏòSQL SERVER 2000. ÍøÉϲéÁËЩ×ÊÁÏ£¬¼ÓÉÏ×Ô¼ºµÄ¾­Àú£¬×ܽ᣺
1¡¢Ê×ÏÈ¿´asp µÄ³ÌÐòÖÐÊÇ·ñÓÐ on error resume next; Èç¹ûÓÐ,ÏÈ×¢Ê͵ô¡£·ñÔòºÜ¶à´íÎóÎÞ·¨±©Â¶³öÀ´
2¡¢´´½¨SQL SERVER Êý¾Ý±í¡£ ʹÓÃSQL SERVER 2000×Ô´øµÄÊý¾Ýµ¼ÈëÏòµ¼£¬½«ACCESSÊý¾Ý¿âÖеıí½á¹¹£¬ÒÔ¼ ......

ASP excelµ¼³ö/µ¼ÈëAccessÊý¾Ý¿â(´úÂë+ʵÀýÏÂÔØ)

Excelµ¼³öº¯Êý
<%
Sub   ExportToExcel    
Response.ContentType   =   "application/vnd.ms-Excel"  
Response.AddHeader   "Content-Disposition",   "attachment;Filename=Results.xls"  
Response.Write  ......

Asp½«²éѯ½á¹ûµ¼³öµ½excelÀï

ÊÇOfficeµÄOWC°æ±¾ÎÊÌâ¡£2000£¬2002XP£¬2003¸÷²»Ïàͬ£¬¼ÓÈëOfficeµÄ°æ±¾¼ì²é¼´¿É£¬ÍêÕû´úÂëÈçÏ£º
<script language="javascript">
function exportExcel(atblData,dirPath)
{
//alert(dirPath);
if (typeof(atblData)=="undefined"||typeof(atblData)=="unknow")
     {
  & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ