Skip to main content
A newer version of this page is available. .
Tab

FileUploadCompleteEventArgs.ErrorText Property

Gets or sets the error text.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public string ErrorText { get; set; }

Property Value

Type Description
String

A String value that specifies the error text.

Remarks

If the uploaded file doesn’t meet the validation criteria specified via the ASPxUploadControl.ValidationSettings property, a specific error text is displayed within the ASPxUploadControl. In this case, the error text may be taken from the UploadControlValidationSettings.FileDoesNotExistErrorText, UploadControlValidationSettings.MaxFileSizeErrorText, UploadControlValidationSettings.NotAllowedContentTypeErrorText or UploadControlValidationSettings.GeneralErrorText properties, depending upon the error’s type.

If you perform your custom validation of the uploaded file in the ASPxUploadControl.FileUploadComplete event’s handler, and the validation fails, you can inform end-users about the error’s cause by setting the FileUploadCompleteEventArgs.IsValid property to false, and assigning a specific error explanation text to the ErrorText property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ErrorText property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also