Adds a new System.Web.UI.StateItem object to the System.Web.UI.StateBag object. If the item already exists in the System.Web.UI.StateBag object, this method updates the value of the item.
- key
- The attribute name for the System.Web.UI.StateItem.
- value
- The value of the item to add to the System.Web.UI.StateBag.
Returns a System.Web.UI.StateItem that represents the object added to view state.