DataSource File System Provider
- 2 minutes to read
ASPxFileManager uses the data source file system provider when the ASPxFileManager.ProviderType property is set to DataSource.
The data source file system provider is represented by the DataSourceFileSystemProvider class, which gives you a definition of methods for getting a file and folder hierarchy, and the methods for editing file manager items.
Provider Settings
To define a data source whose file system information should be obtained, use the ASPxFileManager.DataSource or ASPxFileManager.DataSourceID property.
ASPxFileManager exposes its specific data-related properties, allowing you to specify the data source fields from which information should be retrieved. The table below lists these properties.
Property Name | Member | Type | Field Value Description |
---|---|---|---|
FileBinaryContentFieldName | FileManagerSettingsDataSource.FileBinaryContentFieldName | Byte[] | An array of bytes that is the file content |
IsFolderFieldName* | FileManagerSettingsDataSource.IsFolderFieldName | Boolean | A value defines an item’s type (folder or file). |
KeyFieldName* | FileManagerSettingsDataSource.KeyFieldName | String | Item’s key value. |
LastWriteTimeFieldName | FileManagerSettingsDataSource.LastWriteTimeFieldName | DateTime | The date of the last file modification. |
NameFieldName* | FileManagerSettingsDataSource.NameFieldName | String | An item’s name, which is displayed within a file manager. |
ParentKeyFieldName* | FileManagerSettingsDataSource.ParentKeyFieldName | String | A key value of the item’s parent item. |
Note, the properties marked with the (*) sign are required for ASPxFileManager to work properly. The others are optional.
Online Blogs
ASP.NET File Manager - Data Bind using Data Source
Online Demo
File Manager - Database Binding