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

ASPxUploadControl.IsValid Property

OBSOLETE

Use the UploadedFiles[].IsValid property

Gets a value indicating whether the uploaded file passes the validation criteria defined via the ASPxUploadControl.ValidationSettings property.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[Obsolete("Use the UploadedFiles[].IsValid property")]
public bool IsValid { get; }

Property Value

Type Description
Boolean

true if the file is valid; otherwise, false.

Remarks

Use IsValid property to verify whether the uploaded file has passed the built-in validation whose criteria can be defined using the ASPxUploadControl.ValidationSettings property. Typically, IsValid property can be used to determine whether the file is valid before saving the file (using the ASPxUploadControl.SaveAs method, for instance).

Note that if the uploaded file’s validation fails, the FileUploadCompleteEventArgs.IsValid and ASPxClientUploadControlFileUploadCompleteEventArgs.isValid properties are also set to false.

See Also