ASPxUploadControl.HasFile Property
OBSOLETE
Use the UploadedFiles[] property
Gets a value that indicates whether the control has a file.Note: This property is now obsolete; use the ASPxUploadControl.UploadedFiles property instead.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v21.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the control contains a file; otherwise, false. |
Remarks
Use the HasFile property to verify whether a file that should be uploaded is specified for the ASPxUploadControl on the client, and this file exists. If the HasFile property is true, the file can be saved by using specific means (for instance, see the ASPxUploadControl.SaveAs method or the ASPxUploadControl.FileBytes and ASPxUploadControl.FileContent properties).