设一个Label标签:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
和一个Button:
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button"/>因为Label没有Value值,所以如果后台要取Label1.Text就要用ViewState但是为什么在aspx页面头设置EnableViewState="false"后台还能对Label1.Text进行赋值?(取Label1.Text会报错,但是在后台写
                Label1.Text = "00";
  会正常运行?)
上网查了说Label1类本来就有.Text属性,但是我用Reflector看了Label的set属性:
public virtual void set_Text(string value)
{
    if (this.HasControls())
    {
        this.Controls.Clear();
    }
    this.ViewState["Text"] = value;
}应该是把值赋给了ViewState,但是我把ViewState禁用了怎么这个不报错呢?