Back to Devexpress

ASPxFileManager.DataSourceID Property

aspnet-devexpress-dot-web-dot-aspxfilemanager-16c0b484.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public override string DataSourceID { get; set; }
vb
Public Overrides Property DataSourceID As String

Property Value

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

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

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

     ...

</dx:ASPxFileManager>

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

See Also

File System Providers

File Manager

Root Folder

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace