ASP.NET»º´æ
Ò³ÃæÊä³ö»º´æ×÷Ϊ×î¼òµ¥µÄ»º´æÐÎʽ£¬Êä³ö»º´æÖ»ÊÇÔÚÄÚ´æÖб£ÁôΪÏìÓ¦ÇëÇó¶ø·¢Ë굀 HTML µÄ¸±±¾¡£ÆäºóÔÙÓÐÇëÇóʱ½«Ìṩ»º´æµÄÊä³ö£¬Ö±µ½»º´æµ½ÆÚ£¬ÕâÑù£¬ÐÔÄÜÓпÉÄܵõ½ºÜ´óµÄÌá¸ß£¨È¡¾öÓÚÐèÒª¶àÉÙ¿ªÏúÀ´´´½¨ÔʼҳÃæÊä³ö - ·¢ËÍ»º´æµÄÊä³ö×ÜÊǺܿ죬²¢ÇұȽÏÎȶ¨£©¡£
ÉèÖÃÒ³ÃæÊä³ö»º´æ¿ÉÒÔʹÓÃÒÔÏÂÁ½ÖÖ·½Ê½£ºÒ»ÖÖÊÇʹÓÃ@ OutputCacheÖ¸ÁÁíÒ»ÖÖÊÇʹÓÃÒ³ÃæÊä³ö»º´æAPI¡£@ OutputCacheÖ¸ÁîÔø¾ÔÚASP.NET 1.xÖгöÏÖ¹ý£¬²¢ÔÚASP.NET 2.0Öеõ½Á˼̳кÍÔöÇ¿¡£Ò³ÃæÊä³ö»º´æAPIÖ÷ÒªÊÇÖ¸HttpCachePolicyÀà¡£
@ OutputCache ÒÔÉùÃ÷µÄ·½Ê½¿ØÖÆ ASP.NET Ò³»òÒ³Öаüº¬µÄÓû§¿Ø¼þµÄÊä³ö»º´æ²ßÂÔ¡£
Óï·¨ÈçÏÂ
<% @ OutputCache Duration = " #ofseconds "
Location = " Any | Client | Downstream | Server | None |
ServerAndClient "
Shared = " True | False "
VaryByControl = " controlname "
VaryByCustom = " browser | customstring "
VaryByHeader = " headers "
VaryByParam = " parametername "
CacheProfile = " cache profile name | '' "
NoStore = " true | false "
SqlDependency = " database/table name pair | CommandNotification "
%>
Duration Ò³»òÓû§¿Ø¼þ½øÐлº´æµÄʱ¼ä£¨ÒÔÃë¼Æ£©¡£ÔÚÒ³»òÓû§¿Ø¼þÉÏÉèÖøÃÊôÐÔΪÀ´×Ô¶ÔÏóµÄ HTTP ÏìÓ¦½¨Á¢ÁËÒ»¸ö¹ýÆÚ²ßÂÔ£¬²¢½«×Ô¶¯»º´æÒ³»òÓû§¿Ø¼þÊä³ö¡£ Location
¡¡¡¡ÓÃÓÚÖ¸¶¨Êä³ö»º´æÏîµÄλÖá£ÆäÊôÐÔÖµÊÇOutputCacheLocationö¾ÙÖµ£¬ËüÃÇÊÇAny¡¢Client¡¢Downstream¡¢None¡¢ServerºÍServerAndClient¡£Ä¬ÈÏÖµÊÇAny£¬±íʾÊä³ö»º´æ¿ÉÓÃÓÚËùÓÐÇëÇ󣬰üÀ¨¿Í»§¶Ëä¯ÀÀÆ÷¡¢´úÀí·þÎñÆ÷»ò´¦ÀíÇëÇóµÄ·þÎñÆ
Ïà¹ØÎĵµ£º
¸Õ±ÏÒµ£¬×î½üÔÚ¸ã±ÏÒµÂÛÎÄ¡£
˵Æð±ÏÒµÂÛÎÄÎÒ¾ÍÍ·ÌÛ£¬ÎÒÃÇÈýÈËÒ»×飬±¾À´ÎÒÖ÷ÕÅÓÃC#д£¬Ì×ÓÃÒ»¸öÍâ¹úµÄÄ£ÐÍBalloonShopÔÚÏß¹ºÎïÍøÕ¾£¬C#ÊÇ×ÔѧµÄ¡£µ«ÊÇͬ×éµÄÒ»¸öͬѧVBѧµÃ²»´í£¬ÒªÓÃVB¡£ÎÒÏëÄãÒªÓÃVBдµÄ»°ÎÒÊDz»Ì«¶®£¬ÄÇÖ»ÄÜÄã×Ô¼ºÐ´ºÃÁË£¬ÎÒ×î¶àÒ²¾Í´î°ÑÊÖ¶øÒÑ£¬Ê¡ÐÄÁË£¬ºÎÀÖ¶ø²»ÎªÄØ£¡
×îºó×÷Æ·×ö³öÀ´»¹Ëã²»´í£¬¾Í ......
ÎҵĻú×ÓÔ±¾¾ÍÓÐInternetÐÅÏ¢·þÎñ£¨IIS£©µÄ°²×°Ñ¡ÏÏÂÁ˺ܶà°æ±¾µÄIIS»òi386Îļþ¿É¾ÍÊÇȱÕâȱÄǵģ¬Èç:iisapp.vbs
°´ÍøÉÏ˵µÄÐÞ¸´Êý¾ÝÒ²ºÁÎÞÆðÉ«£¬×îºó
½â¾ö·½°¸£º
Ê×ÏÈÔÚ“¿ªÊ¼”²Ëµ¥µÄ“ÔËÐДÖÐÊäÈë“c:\Windows\inf\sysoc.inf”£¬ÏµÍ³»á×Ô¶¯Ê¹ÓüÇʱ¾´ò¿ªsy ......
Óö¼û¹ýÕâÑùµÄÎÊÌ⣬ºÜÆæ¹Ö£¬¾ÍÊÇ asp.net button°´Å¥onclickʼþ´¥·¢²»ÁË£¬
µã»÷û·´Ó¦£¬È»ºóÔÚÍøÉϲéÁËЩ×ÊÁÏ£¬·¢ÏÖÒ»¸ö˵·¨£¬“Ò»°ãÀ´ËµÊÇ¿Í»§¶ËÔ´´úÂëÖÐÓжà¸öform±êʶ£¬»á³öÏÖÕâÖÖÇé¿ö”
ÓÚÊǾͲ鿴×Ô¼ºµÄÒ³Ãæ´úÂ룬ÕæµÄÓÐÁ½¸öform£¬È¥µôÒ»¸öºó£¬¾ÍÕý³£À²£¬
ÖÁÓÚ ÕâÖÖÇé¿ö£¬Ôڴ˼ÇÏÂÀ´£¬×÷¸öѧϰµÄÒ»¸öÐ¡Ö ......
ASP.NET
ʹÓÃÎÞCookieµÄ±íµ¥ÈÏ֤Ʊ¾Ý
ĬÈÏÇé¿öÏ£¬forms authentication system½«¾ö¶¨Êǽ«Æ±¾Ý´æ´¢ÔÚcookies
collectionÀﻹÊDzåÈëÓû§·ÃÎÊÒ³ÃæµÄURLÀï¡£ËùÓÐÖ÷Á÷µÄ×ÀÃæä¯ÀÀÆ÷£¬±ÈÈçInternet
Explorer£¬Firefox£¬Opera£¬»òSafari¶¼Ö§³Öcookies£¬µ«²¢·ÇËùÓеÄÒƶ¯É豸¶¼Ö§³Ö¡£
forms authentication systemʹÓúÎÖÖco ......
ÏîÄ¿ºÍÍøÕ¾µÄÇø±ð
ÏîÄ¿±àÒë³Édll£¬Íøվͨ¹ý“·¢²¼ÍøÕ¾”À´²¿Êð
²¿ÊðÄ¿µÄµØ£º/binĿ¼ÏÂ
7¸ö¶¥¼¶Ä¿Â¼¼°Æä±àÒëÇé¿ö
ÈýÖÖ²¿Êð·½Ê½¼°Æä³ÌÐò¼¯Éú³ÉÇé¿ö £¨³ÌÐò¼¯Ó°×Ó¿½±´£©
¶¨ÖƳÌÐò¼¯Éú³É£º
<compilation>
<codeSubDirectories>
<add directoryName="vb_components"/ ......