Tab

UploadedFile.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.v20.2.dll

Declaration

public bool IsValid { get; set; }
Public Property IsValid As Boolean

Property Value

Type Description
Boolean

true if the file is valid; otherwise, false.

Remarks

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

Note that if an uploaded file's validation fails, the IsValid and isValid properties are also automatically set to false.

<dx:ASPxUploadControl ID="UploadControl" runat="server" ClientInstanceName="UploadControl" 
  OnFilesUploadComplete="UploadControl_FilesUploadComplete" ...>
...
</dx:ASPxUploadControl>

Online Demo

ASPxUploadControl - Custom Progress Panel

See Also