Export (0) Print
Expand All

ReportViewer.KeepSessionAlive Property

Visual Studio 2010

Gets or sets a Boolean value that indicates whether to keep the report server session from expiring as long as ReportViewer is running.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

[DefaultValueAttribute(true)] 
public bool KeepSessionAlive { get; set; }
/** @property */
public boolean get_KeepSessionAlive ()

/** @property */
public void set_KeepSessionAlive (boolean value)

public function get KeepSessionAlive () : boolean

public function set KeepSessionAlive (value : boolean)

Property Value

true to keep the report server session from expiring; otherwise false. The default is true.

In remote processing mode, setting this property to true causes the ReportViewer control to keep the report server session from expiring. The ReportViewer control pings the report server to keep the report server session from expiring. If you want to keep a report server session active for a user even when there is no activity on their part, set KeepSessionAlive to true. To let the session timeout and expire in your application, set KeepSessionAlive to false.

In local processing mode, setting this property has no effect.

If KeepSessionAlive is set to false and the report server session has already been created, you cannot set this property to true. Doing so will cause an InvalidOperationException to be thrown.

Show:
© 2014 Microsoft