Control.HasChildViewState プロパティ
アセンブリ: System.Web (system.web.dll 内)


このプロパティを使ってサーバー コントロールの子コントロールがビューステートの情報を格納しているかどうかを検査することにより、ClearChildViewState メソッドの不必要な呼び出しをしないようにできます。

Public Overrides Sub DataBind() MyBase.OnDataBinding(EventArgs.Empty) ' Reset the control's state. Controls.Clear() ' Check for HasChildViewState to avoid unnecessary calls to ClearChildViewState. If HasChildViewState Then ClearChildViewState() End If ChildControlsCreated = True If Not IsTrackingViewState Then TrackViewState() End If End Sub
public override void DataBind() { base.OnDataBinding(EventArgs.Empty); // Reset the control's state. Controls.Clear(); // Check for HasChildViewState to avoid unnecessary calls to ClearChildViewState. if (HasChildViewState) ClearChildViewState(); ChildControlsCreated = true; if (!IsTrackingViewState) TrackViewState(); }
public void DataBind() { super.OnDataBinding(EventArgs.Empty); // Reset the control's state. get_Controls().Clear(); // Check for HasChildViewState to avoid unnecessary calls to // ClearChildViewState. if (get_HasChildViewState()) { ClearChildViewState(); } set_ChildControlsCreated(true); if (!(get_IsTrackingViewState())) { TrackViewState(); } } //DataBind

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からControl.HasChildViewState プロパティを検索する場合は、下記のリンクをクリックしてください。

- Control.HasChildViewState プロパティのページへのリンク