Dart.PowerWEB.TextBox Namespace > HtmlBox Class : FileUpload Event |
Raised after an attempted file upload.
[Visual Basic]
Public Event FileUpload() As FileUploadEventHandler
[C#]
public event FileUploadEventHandler FileUpload();
[C++]
public: __event FileUploadEventHandler* FileUpload();
[C++/CLI]
public:
event FileUploadEventHandler^ FileUpload();
The event handler receives an argument of type FileUploadEventArgs containing data related to this event. The following FileUploadEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Exception | Gets the exception, if any, that occurred during a file upload. |
FilePath | Gets the path of the file as sent by the browser. |
SavedFilePath | Gets the path of the file as saved on the server. |
UserMessage | Gets or sets the message displayed to the user after a file upload. |
The FileUpload event fires after an attempted file upload. A FileUploadEventArgs object will be passed into this event.
This object includes an FileUploadEventArgs.Exception property that will contain any exceptions that occurred during the upload, or null if the upload was successful. The FileUploadEventArgs.FilePath property will contain the path of the file as sent by the browser. The FileUploadEventArgs.SavedFilePath property will contain the path of the file as saved on the server. The FileUploadEventArgs.UserMessage property is the message presented to the user after the upload.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
HtmlBox Class | HtmlBox Members
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.