Class UploadPersistedFile
Compatibility control that keeps track of a single persisted uploaded file.
Inheritance
UploadPersistedFile
Implements
Inherited Members
Namespace: CuteWebUI
Assembly: AjaxUploader.dll
Syntax
public class UploadPersistedFile : UploadFileBase, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackDataHandler, IAjaxUploader
Constructors
UploadPersistedFile()
Initializes a new instance of the UploadPersistedFile class.
Declaration
public UploadPersistedFile()
Properties
File
Gets the currently persisted file, if one has been selected or uploaded.
Declaration
[Browsable(false)]
public PersistedFile File { get; }
Property Value
| Type | Description |
|---|---|
| PersistedFile |
Methods
ChangeFile(int, string, Stream)
Replaces the current persisted file by uploading a new file.
Declaration
public void ChangeFile(int filesize, string filename, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| int | filesize | |
| string | filename | |
| Stream | stream |
ClearFile()
Clears the current persisted file selection.
Declaration
public void ClearFile()
RaisePostDataChangedEvent()
Raises the post-data changed notifications and upload events for files loaded during postback. For each restored GUID, the control reloads file metadata and fires validation, file, and batch-complete events.
Declaration
public override void RaisePostDataChangedEvent()
Overrides
Render(HtmlTextWriter)
Renders the control to the specified HTML writer.
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| HtmlTextWriter | writer | The HtmlTextWriter object that receives the control content. |
Overrides
Events
FileChanged
Occurs when the persisted file value changes.
Declaration
public event PersistedFileEventHandler FileChanged
Event Type
| Type | Description |
|---|---|
| PersistedFileEventHandler |