SPWebService.ViewStateOnServer property

By default set to true, the view state will be stored in the velocity cache.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property ViewStateOnServer As Boolean
    Get
    Set
'Usage
Dim instance As SPWebService
Dim value As Boolean

value = instance.ViewStateOnServer

instance.ViewStateOnServer = value
public bool ViewStateOnServer { get; set; }

Property value

Type: System.Boolean
A boolean determining whether to store page view state on the server. When set to false the view state will be downloaded with the page and uploaded with every post.

See also

Reference

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace