ASP.NETÇå³ýÒ³Ãæ»º´æµÄ·½·¨
ASP.NETÇå³ýÒ³Ãæ»º´æ
(1) Response.Buffer = true;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
(2) HTML·½·¨
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>
(3) ÖØÐµ÷ÓÃÔÒ³ÃæµÄʱºòÔÚ¸øÒ³Ãæ´«Ò»¸ö²ÎÊý: href="****.ASPX?random()"
Ïà¹ØÎĵµ£º
ºÚɫ΢Цѧasp.net£¨Ðò£©
±¾ÈËÊǸö²ËÄñ£¬´ÓʵÄÖ°ÒµÔÚÍøÕ¾ºǫ́Ìí¼ÓÎÄÕµģ¬ÎÒ¶Á³ÉÈË´óѧÔÚÄÇÀïÖ»ÖªµÀÓÐCÓïÑÔÕâÖÖ¶«Î÷£¬¶ÔÓÚÀïÃæµÄÄÚÈÝÒ»¸Å²»Öª£¬ºóÀ´²Î¼Ó×Ô¿¼²ÅÖªµÀÁËselectÓïÑÔ¡£Í¨¹ýÇ×ÆÝ°ïÎÒ½éÉܵ½×öÍøÕ¾µÄ²¿ÃÅ£¬ÓÉÓÚ¹¤×÷ÐèÒª²Å½Ó´¥ÁËHTMLÓïÑÔ£¬ºóÀ´ÂýÂýÏÐÏÂÀ´ÁË£¬¿´µ½Í¬ÊÂASP×ö ......
ΪÁËʹÓû§Äܹ»µÇ¼ʹÓà ASP.NET ³ÉÔ±×ʸñ£¨Forms Éí·ÝÑéÖ¤£©½øÐÐÓû§Éí·ÝÑéÖ¤µÄ ASP.NET Ó¦ÓóÌÐò£¬¿ÉÒÔʹÓà LoginStatus ¿Ø¼þ¡£LoginStatus ¿Ø¼þ¼ì²âÓû§µÄÉí·ÝÑé֤״̬¡£Èç¹ûÓû§Î´¾¹ýÉí·ÝÑéÖ¤£¬¸Ã¿Ø¼þ½«ÏÔʾһ¸ö°´Å¥£¬Òýµ¼Óû§½øÈëÓ¦ÓóÌÐòµÄµÇ¼ҳ¡£Èç¹ûÓû§ÒѾ¹ýÉí·ÝÑéÖ¤£¬LoginStatus ¿Ø¼þ½«ÏÔʾһ¸ö°´Å¥£¬Óû§¿ ......
ǰ̨ Èç¹ûÄãÓõÄÊÇ gridview ¾Í°ÑRepeaterÌæ»»³Égridview ¡£Ò»ÑùµÄ¡£¡£
<form id="frm01" action="" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
& ......
¿ÉÒÔʹÓÃÊܱ£»¤ÅäÖÃÀ´¼ÓÃÜ Web Ó¦ÓóÌÐòÅäÖÃÎļþ£¨Èç Web.config
Îļþ£©ÖеÄÃô¸ÐÐÅÏ¢£¨°üÀ¨Óû§ÃûºÍÃÜÂë¡¢Êý¾Ý¿âÁ¬½Ó×Ö·û´®ºÍ¼ÓÃÜÃÜÔ¿£©¡£¶ÔÅäÖÃÐÅÏ¢½øÐмÓÃܺ󣬼´Ê¹¹¥»÷Õß»ñÈ¡Á˶ÔÅäÖÃÎļþµÄ·ÃÎÊ£¬Ò²¿ÉÒÔʹ¹¥»÷ÕßÄÑÒÔ»ñ
È¡¶ÔÃô¸ÐÐÅÏ¢µÄ·ÃÎÊ£¬´Ó¶ø¸Ä½øÓ¦ÓóÌÐòµÄ°²È«ÐÔ¡£
Õë¶Ôasp.net 2.0µÄÓ¦ÓóÌÐòµÄÊý¾Ý¿âÁ´½Ó×Ö·û´®½ ......
asp.net2.0ѧϰÀú³Ì ²ËÄñµ½Öм¶³ÌÐòÔ±µÄ·ÉÔ¾
2007-06-27 11:08:02 ±¾ÎÄÒѹ«²¼µ½²©¿ÍƵµÀÖ°³¡·´´Òµ·ÖÀà
Èç¹ûÄãÊÇÒ»¸ö²ËÄñ»òÕß×ÔÈÏΪ³õѧÕßÄÇô±¾Îķdz£ÊʺÏÄ㣻
²»ÄÜ˵Õâ30±¾Êé¾ÍÊÇ×î¼Ñ×éºÏ£¬µ«ÊÇ¿ÉÒÔ˵Õâ¸ö×éºÏ²»²î£»
±¾ÈËÔø²©ÀÀȺÊ飬ºÜ¶àÊéÖØ¸´£¬ºÜ¶àÊé½²µÄ²»ÊÊÓã¬ÕâЩÊé¶¼ÊÇĿǰÊéµê¿ÉÒÔÂòµ½µÄ£»
´ïµ½Öм ......