Skip to main content
Tab

ASPxFileManager.DataSourceID Property

Gets or sets the ID of the control from which the ASPxFileManager control retrieves its list of data items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public override string DataSourceID { get; set; }

Property Value

Type Description
String

The ID of a control that is the data source from which ASPxFileManager retrieves its data.

Remarks

Note

For a full example, see File Manager - Database Binding or File Manager - Details View demo.

<dx:ASPxFileManager ID="fileManager" runat="server" DataSourceID="ArtsDataSource">
     <SettingsDataSource KeyFieldName="Id" ParentKeyFieldName="ParentID" NameFieldName="Name" IsFolderFieldName="IsFolder" FileBinaryContentFieldName="Data" LastWriteTimeFieldName="LastWriteTime" />
     ...
</dx:ASPxFileManager>
<ef:EntityDataSource ID="ArtsDataSource" runat="server" ContextTypeName="DevExpress.Web.Demos.DataContext" EntitySetName="Arts" StoreOriginalValuesInViewState="false" />

Example

<dx:ASPxFileManager ID="fileManager" runat="server" DataSourceID="MyXpoDataSource">

     ...

</dx:ASPxFileManager>

<dx:XpoDataSource ID="MyXpoDataSource" runat="server" TypeName="PersistentObjects.ArtsEntity">
</dx:XpoDataSource>
See Also