C# Class AjaxControlToolkit.AsyncFileUpload

Inheritance: ScriptControlBase
Datei anzeigen Open project: DevExpress/AjaxControlToolkit Class Usage Examples

Private Properties

Property Type Description
CreateChilds void
PopulateObjectPriorToRender void
ReceivedFile void

Public Methods

Method Description
AsyncFileUpload ( ) : System
ClearAllFilesFromPersistedStore ( ) : void

Clears all uploaded files of a current control from session.

ClearFileFromPersistedStore ( ) : void

Clears all uploaded files of current control from session

GetBytesFromStream ( Stream stream ) : byte[]
SaveAs ( string fileName ) : void

Saves the content of an uploaded file.

Protected Methods

Method Description
CreateChildControls ( ) : void
CreateControlStyle ( ) : System.Web.UI.WebControls.Style
DescribeComponent ( System.Web.UI.ScriptComponentDescriptor descriptor ) : void
GenerateHtmlInputFileControl ( string lastFileName ) : string
GenerateHtmlInputHiddenControl ( ) : string
OnPreRender ( EventArgs e ) : void
OnUploadedComplete ( AsyncFileUploadEventArgs e ) : void
OnUploadedFileError ( AsyncFileUploadEventArgs e ) : void

Private Methods

Method Description
CreateChilds ( ) : void
PopulateObjectPriorToRender ( string controlId ) : void
ReceivedFile ( string sendingControlID ) : void

Method Details

AsyncFileUpload() public method

public AsyncFileUpload ( ) : System
return System

ClearAllFilesFromPersistedStore() public method

Clears all uploaded files of a current control from session.
public ClearAllFilesFromPersistedStore ( ) : void
return void

ClearFileFromPersistedStore() public method

Clears all uploaded files of current control from session
public ClearFileFromPersistedStore ( ) : void
return void

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

CreateControlStyle() protected method

protected CreateControlStyle ( ) : System.Web.UI.WebControls.Style
return System.Web.UI.WebControls.Style

DescribeComponent() protected method

protected DescribeComponent ( System.Web.UI.ScriptComponentDescriptor descriptor ) : void
descriptor System.Web.UI.ScriptComponentDescriptor
return void

GenerateHtmlInputFileControl() protected method

protected GenerateHtmlInputFileControl ( string lastFileName ) : string
lastFileName string
return string

GenerateHtmlInputHiddenControl() protected method

protected GenerateHtmlInputHiddenControl ( ) : string
return string

GetBytesFromStream() public method

public GetBytesFromStream ( Stream stream ) : byte[]
stream Stream
return byte[]

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void

OnUploadedComplete() protected method

protected OnUploadedComplete ( AsyncFileUploadEventArgs e ) : void
e AsyncFileUploadEventArgs
return void

OnUploadedFileError() protected method

protected OnUploadedFileError ( AsyncFileUploadEventArgs e ) : void
e AsyncFileUploadEventArgs
return void

SaveAs() public method

Saves the content of an uploaded file.
public SaveAs ( string fileName ) : void
fileName string Uploaded file name
return void