System.Web.UI.StateBag.IsItemDirty Method

Checks a System.Web.UI.StateItem object stored in the System.Web.UI.StateBag object to evaluate whether it has been modified since the call to Control.TrackViewState.

Syntax

public bool IsItemDirty (string key)

Parameters

key
The key of the item to check.

Returns

true if the item has been modified; otherwise, false.

Remarks

This method also returns false if the key parameter does not exist in the System.Web.UI.StateBag object.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0