Skip to main content

FileUploadCompleteEventArgs.IsValid Property

Gets or sets a value specifying whether the uploaded file passes validation.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public bool IsValid { get; set; }

Property Value

Type Description

true if the file is valid; otherwise, false.


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.

See Also