FileUploadCompleteEventArgs.IsValid Property
Gets or sets a value specifying whether the uploaded file passes validation.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
Use the IsValid property to specify whether the uploaded file meets your validation criteria.
If the validation criteria are defined using the ASPxUploadControl.ValidationSettings property, the IsValid property’s value is set automatically depending upon the performed file validation’s state. You can additionally implement your custom validation logic in the ASPxUploadControl.FileUploadComplete event’s handler. In this case, you should manually set the value of the IsValid property to indicate the result of your custom validation.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsValid 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.