Intersoft WebCombo Documentation
ViewStateStorage Property
See Also  Send Feedback
ISNet.WebUI.WebCombo Namespace > WebCombo 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 WebCombo
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 WebCombo.NET v4.0 the default value for ViewStateStorage is now set to Client instead of PageCache. The reasons we decided to use Client as the default value are to reduce the viewstate size of a control and to confirm standard mechanism as in standard.NET controls. ViewStateStorage now includes new option to save the state to physical disk. The option called FileServer enables the view state to be saved to a physical disk in the local computer or a shared drive in network. The FileServer cache option solved many barriers around view state topic. With FileServer, you no longer have to worry about memory leaks or limited server resources. Some of benefits using FileServer cache are:
  • Highly scalable. You can choose a network drive to store the caches which enable multiple web servers to access the state.
  • Decent performance. With more than dozen of high performance hard drives, you can choose a near-memory speed with high random access and sequential read write hard drive to store the caches.
  • Easily extensible. Unlike memory (RAM), you can easily extend hard drives with larger one when it becomes insufficient.

Features of FileServer:

  • Automatic cleaning. When the cache for the viewstate has expired, the caches will be automatically deleted.
  • Easily configurable for application-wide through web.config.
  • Allow customizations on cache policy and expiration duration.

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.