SessionPageStateSection.DefaultHistorySize Field
.NET Framework (current version)
Defines the size of the page history.
Assembly: System.Web (in System.Web.dll)
The following code example shows how to obtain the DefaultHistorySize property from the configuration file associated with an existing Web application.
' Get the history size. Dim historySize As Integer = _ sessionPageState.HistorySize Dim msg As String = _ String.Format( _ "Current history size: {0}" + _ ControlChars.Lf, historySize.ToString()) Console.Write(msg) If Not sessionPageState.IsReadOnly() Then ' Double current history size. sessionPageState.HistorySize = _ 2 * sessionPageState.HistorySize configuration.Save() historySize = sessionPageState.HistorySize msg = String.Format( _ "New history size: {0}" + _ ControlChars.Lf, historySize.ToString()) Console.Write(msg) End If
.NET Framework
Available since 2.0
Available since 2.0
Show: