|
|
@@ -432,6 +432,13 @@ namespace System.Web.UI.WebControls
|
|
|
attributeState = new StateBag(true);
|
|
|
attributeState.TrackViewState();
|
|
|
attributeState.LoadViewState (saved.Second);
|
|
|
+ }
|
|
|
+
|
|
|
+ object enable = ViewState["Enabled"];
|
|
|
+ if (enable!=null)
|
|
|
+ {
|
|
|
+ Enabled = (bool)enable;
|
|
|
+ EnableViewState = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -448,7 +455,9 @@ namespace System.Web.UI.WebControls
|
|
|
}
|
|
|
|
|
|
protected override object SaveViewState()
|
|
|
- {
|
|
|
+ {
|
|
|
+ if (EnableViewState)
|
|
|
+ ViewState["Enabled"] = enabled;
|
|
|
if (ControlStyleCreated)
|
|
|
ControlStyle.SaveViewState ();
|
|
|
|