Class DnnFilePicker
The FilePicker Class provides a File Picker Control for DotNetNuke.
Inheritance
Implements
Namespace: DotNetNuke.Web.UI.WebControls
Assembly: DotNetNuke.Web.dll
Syntax
public class DnnFilePicker : CompositeControl, ILocalizable
Properties
| Improve this Doc View SourceCommandCssClass
Gets or sets the class to be used for the Labels.
Declaration
public string CommandCssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A String. |
Remarks
Defaults to 'CommandButton'.
FileFilter
Gets or sets the file Filter to use.
Declaration
public string FileFilter { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | a comma seperated list of file extenstions no wildcards or periods e.g. "jpg,png,gif". |
Remarks
Defaults to ''.
FileID
Gets or sets the FileID for the control.
Declaration
public int FileID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | An Integer. |
FilePath
Gets or sets the FilePath for the control.
Declaration
public string FilePath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A String. |
IsHost
Gets a value indicating whether gets whether the control is on a Host or Portal Tab.
Declaration
protected bool IsHost { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | A Boolean. |
LabelCssClass
Gets or sets the class to be used for the Labels.
Declaration
public string LabelCssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A String. |
Localize
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public bool Localize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LocalResourceFile
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public string LocalResourceFile { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
MaxHeight
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public int MaxHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MaxWidth
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public int MaxWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Mode
Gets or sets the current mode of the control.
Declaration
protected DnnFilePicker.FileControlMode Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| DnnFilePicker.FileControlMode | A FileControlMode enum. |
Remarks
Defaults to FileControlMode.Normal.
ParentFolder
Gets the root folder for the control.
Declaration
protected string ParentFolder { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A String. |
Permissions
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public string Permissions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PortalId
Gets the file PortalId to use.
Declaration
protected int PortalId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | An Integer. |
Remarks
Defaults to PortalSettings.PortalId.
PortalSettings
Gets the current Portal Settings.
Declaration
protected PortalSettings PortalSettings { get; }
Property Value
| Type | Description |
|---|---|
| PortalSettings |
Required
Gets or sets a value indicating whether gets or sets whether the combos have a "Not Specified" option.
Declaration
public bool Required { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | A Boolean. |
Remarks
Defaults to True (ie no "Not Specified").
ShowFolders
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public bool ShowFolders { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ShowUpLoad
Gets or sets a value indicating whether gets or sets whether to Show the Upload Button.
Declaration
public bool ShowUpLoad { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | A Boolean. |
Remarks
Defaults to True.
UsePersonalFolder
Gets or sets a value indicating whether gets or sets whether to Include Personal Folder.
Declaration
public bool UsePersonalFolder { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | A Boolean. |
Remarks
Defaults to false.
User
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public UserInfo User { get; set; }
Property Value
| Type | Description |
|---|---|
| UserInfo |
Methods
| Improve this Doc View SourceCreateChildControls()
CreateChildControls overrides the Base class's method to correctly build the control based on the configuration.
Declaration
protected override void CreateChildControls()
LocalizeStrings()
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
public virtual void LocalizeStrings()
OnInit(EventArgs)
The FilePicker Class provides a File Picker Control for DotNetNuke.
Declaration
protected override void OnInit(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |
OnPreRender(EventArgs)
OnPreRender runs just before the control is rendered.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e |