Tab

FileUploadCompleteEventArgs.IsValid Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public bool IsValid { get; set; }

Property Value

Type Description
Boolean

true if the file is valid; otherwise, false.

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.

See Also