当前位置:编程学习 > C#/ASP.NET >>

EnableViewState="false"怎么不起作用?

代码如下:

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server" enableviewstate="false">

        <asp:TextBox ID="TextBox1" runat="server" EnableViewState="false"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" EnableViewState="false"></ />

</form>


</body>
</html>



按了提交之后刷新发现还能显示上次填写的数据 --------------------编程问答-------------------- 禁用试图状态,
viewstate --------------------编程问答-------------------- 已经写入 EnableViewState="false" 禁用了,为什么还能恢复呢 --------------------编程问答-------------------- http://support.microsoft.com/?id=316813
    * 文本框 控件中。
    * 复选框 控件。
    * 单选按钮 控件。
三个控件这个属性无效 --------------------编程问答-------------------- http://support.microsoft.com/?id=316813
  * 文本框 控件中。
  * 复选框 控件。
  * 单选按钮 控件。
三个控件这个属性无效
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,