Intersoft WebGrid Documentation
ViewStateStorage Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : ViewStateStorage Property






Gets or sets the location to store the viewstate of this control.

Syntax

Visual Basic (Declaration) 
<BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)>
<DefaultValueAttribute()>
<ISNet.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<CategoryAttribute("View State Settings")>
<ISNet.Serialization.BinarySerializableAttribute()>
<DescriptionAttribute("Gets or sets the location to store the viewstate of this control.")>
Public Overridable Property ViewStateStorage As ISNet.WebUI.StateCacheStorage
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim value As ISNet.WebUI.StateCacheStorage
 
instance.ViewStateStorage = value
 
value = instance.ViewStateStorage
C# 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[CategoryAttribute("View State Settings")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the location to store the viewstate of this control.")]
public virtual ISNet.WebUI.StateCacheStorage ViewStateStorage {get; set;}
Delphi 
public read-write property ViewStateStorage: ISNet.WebUI.StateCacheStorage; virtual; 
JScript 
BindableAttribute(Bindable=, Direction=BindingDirection.OneWay)
DefaultValueAttribute()
ISNet.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
CategoryAttribute("View State Settings")
ISNet.Serialization.BinarySerializableAttribute()
DescriptionAttribute("Gets or sets the location to store the viewstate of this control.")
public function get,set ViewStateStorage : ISNet.WebUI.StateCacheStorage
Managed Extensions for C++ 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[CategoryAttribute("View State Settings")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the location to store the viewstate of this control.")]
public: __property virtual ISNet.WebUI.StateCacheStorage get_ViewStateStorage();
public: __property virtual void set_ViewStateStorage( 
   ISNet.WebUI.StateCacheStorage value
);
C++/CLI 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[CategoryAttribute("View State Settings")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the location to store the viewstate of this control.")]
public:
virtual property ISNet.WebUI.StateCacheStorage ViewStateStorage {
   ISNet.WebUI.StateCacheStorage get();
   void set (    ISNet.WebUI.StateCacheStorage value);
}

Remarks

In WebGrid.NEt V5.0 the ViewState can be saved in Server's Cache, Session, Client, or FileServer. This features enables all Grid's properties to be saved and restored properly in both OnTheFly-PostBack and Full-PostBack invoked by other controls.

By default, the view state is enabled and stored in page’s cache (controlled by this property). The cache will be expired in 1 hour after inactivity. When the viewstate is stored in cache, it will not produce large __VIEWSTATE field in clientside and hence increasing performance up to 50% and reduced server’s resources.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.