Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

XpoDataSource.Session Property

Gets or sets the Session used by the current data source control to load and save persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

[Browsable(false)]
public Session Session { get; set; }

Property Value

Type Description
Session

A Session object connected to a data store.

Remarks

A session which the data source control will work with can be assigned within a page’s Init event handler.

using System;
using DevExpress.Xpo;
// ...
Session session1;
protected void Page_Init(object sender, EventArgs e) {
    session1 = new Session();
    XpoDataSource1.Session = session1;
}

For more information on how to retrieve specific data, see How To: Connect XPO to a Database Server (ASP.NET WebForms).

See Also