StateBag.Add Method
.NET Framework 2.0
Adds a new StateItem object to the StateBag object. If the item already exists in the StateBag object, this method updates the value of the item.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public StateItem Add ( String key, Object value )
public function Add ( key : String, value : Object ) : StateItem
Not applicable.
Parameters
- key
The attribute name for the StateItem.
- value
The value of the item to add to the StateBag.
Return Value
Returns a StateItem that represents the object added to view state.Community Additions
ADD
Show: