Back to Devexpress

ASPxFileManager.Settings Property

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

latest2.5 KB
Original Source

ASPxFileManager.Settings Property

Provides access to the ASPxFileManager‘s main settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public FileManagerSettings Settings { get; }
vb
Public ReadOnly Property Settings As FileManagerSettings

Property Value

TypeDescription
FileManagerSettings

A FileManagerSettings object that contains the control’s settings.

|

Remarks

Example

In markup:

aspx
<dx:ASPxFileManager ID="fileManager" runat="server" ...>
    <Settings RootFolder="~/Content/FileManager/Files" ThumbnailFolder="~/Content/FileManager/Thumbnails" 
    AllowedFileExtensions=".jpg, .jpeg, .gif, .png" InitialFolder="~/Content/FileManager/Images"/>
    ...
</dx:ASPxFileManager>

In code:

csharp
ASPxFileManager fm = new ASPxFileManager();
fm.ID = "ASPxFileManager1";
fm.SettingsUpload.ValidationSettings.DisableHttpHandlerValidation = true;
Page.Form.Controls.Add(fm);
...
fm.Settings.RootFolder = Url.Content("~/Content/FileManager/Files");
fm.Settings.ThumbnailFolder = Url.Content("~/Content/FileManager/Thumbnails");
fm.Settings.InitialFolder = Url.Content("~/Content/FileManager/Images");
fm.Settings.AllowedFileExtensions=new String[] { ".jpeg", ".jpg", ".gif", ".png" };

Online Demo

See Also

SettingsEditing

SettingsFolders

SettingsToolbar

SettingsUpload

File Manager

ASPxFileManager Class

ASPxFileManager Members

DevExpress.Web Namespace