C# aspx 禁止文本款输入缓的几种方法

1   在ASP.NET中可以在页面中加入以下内容:

<%@ OutputCache Location="None" VaryByParam="None" %>

2  <!--禁用缓存部分开始-->
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Progma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache,must-revalidate" />
<!--禁用缓存部分结束-->

3   <%--属性: 禁止文本款输入缓存 autocomplete="off"--%>

  <form id="form1" runat="server" autocomplete="off">

猜你喜欢

转载自www.cnblogs.com/fhrfhr/p/13177740.html
今日推荐