Class FileUploadActions

Shows file upload command buttons: Show, Hide, Upload, Cancel.

Inheritance
System.Object
FileUploadActions
Namespace: Mediachase.FileUploader.Web.UI
Assembly: Mediachase.FileUploader.dll
Version: 10.8.0
Syntax
public class FileUploadActions : CompositeControl
Remarks

The FileUploadActions control visualizes FileUploadControl command.

The User should press Show command to show file upload entry-point. The user specifies the file(s) to upload by entering the full path to the file on the local computer or selects the file(s) by clicking the Browse button, and then locating it in the Choose File dialog box. While the file(s) are uploading to the server the user can cancel upload by the calling Cancel command. The user hides upload panel by clicking the Hide button.

Use ShowActionText, HideActionText, UploadActionText and CancelActionText properties to set command text. Default values are Show, Hide, Upload, Cancel.

Use DisplayShow, DisplayHide, DisplayUpload and DisplayCancel properties to show (hide) commands.

To override command view you can use command view template. Available templates described in the following table can be used to customize the appearance of the list.

Template nameDescription
ShowTextTemplateDefines the content and layout of show command.
HideTextTemplateDefines the content and layout of hide command.
UploadTextTemplateDefines the content and layout of upload command.
CancelTextTemplateDefines the content and layout of cancel command.

Constructors

FileUploadActions()

Initializes a new instance of the FileUploadActions class.

Declaration
public FileUploadActions()

Properties

CancelActionText

Gets or sets the cancel action text.

Declaration
public string CancelActionText { get; set; }
Property Value
Type Description
System.String

The cancel action text.

CancelTextTemplate

Gets or sets the cancel text template.

Declaration
public ITemplate CancelTextTemplate { get; set; }
Property Value
Type Description
System.Web.UI.ITemplate

The cancel text template.

DisplayCancel

Gets or sets a value indicating whether [display cancel].

Declaration
public bool DisplayCancel { get; set; }
Property Value
Type Description
System.Boolean

true if [display cancel]; otherwise, false.

DisplayHide

Gets or sets a value indicating whether [display hide].

Declaration
public bool DisplayHide { get; set; }
Property Value
Type Description
System.Boolean

true if [display hide]; otherwise, false.

DisplayShow

Gets or sets a value indicating whether [display show].

Declaration
public bool DisplayShow { get; set; }
Property Value
Type Description
System.Boolean

true if [display show]; otherwise, false.

DisplayUpload

Gets or sets a value indicating whether [display upload].

Declaration
public bool DisplayUpload { get; set; }
Property Value
Type Description
System.Boolean

true if [display upload]; otherwise, false.

FileUploadControlID

Gets or sets the file upload control ID.

Declaration
public string FileUploadControlID { get; set; }
Property Value
Type Description
System.String

The file upload control ID.

HideActionText

Gets or sets the hide action text.

Declaration
public string HideActionText { get; set; }
Property Value
Type Description
System.String

The hide action text.

HideTextTemplate

Gets or sets the hide text template.

Declaration
public ITemplate HideTextTemplate { get; set; }
Property Value
Type Description
System.Web.UI.ITemplate

The hide text template.

ScriptPath

Gets or sets the script path.

Declaration
public string ScriptPath { get; set; }
Property Value
Type Description
System.String

The script path.

ShowActionText

Gets or sets the show action text.

Declaration
public string ShowActionText { get; set; }
Property Value
Type Description
System.String

The show action text.

ShowTextTemplate

Gets or sets the show text template.

Declaration
public ITemplate ShowTextTemplate { get; set; }
Property Value
Type Description
System.Web.UI.ITemplate

The show text template.

UploadActionText

Gets or sets the upload action text.

Declaration
public string UploadActionText { get; set; }
Property Value
Type Description
System.String

The upload action text.

UploadTextTemplate

Gets or sets the upload text template.

Declaration
public ITemplate UploadTextTemplate { get; set; }
Property Value
Type Description
System.Web.UI.ITemplate

The upload text template.

Methods

OnInit(EventArgs)

Declaration
protected override void OnInit(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

An System.EventArgs object that contains the event data.

Render(HtmlTextWriter)

Writes the System.Web.UI.WebControls.CompositeControl content to the specified System.Web.UI.HtmlTextWriter object, for display on the client.

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

An System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.

RenderContents(HtmlTextWriter)

Renders the contents of the control to the specified writer. This method is used primarily by control developers.

Declaration
protected override void RenderContents(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.