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
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