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

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.v19.2.dll

Declaration

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

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).

The following code snippets (auto-collected from DevExpress Examples) contain references to the HasFile property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also