Skip to main content

UploadControlValidationSettings.NotAllowedFileExtensionErrorText Property

Gets or sets the error text indicating that the specified file’s extension is not allowed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


[DefaultValue("This file extension isn't allowed")]
public string NotAllowedFileExtensionErrorText { get; set; }

Property Value

Type Default Description
String "This file extension isn't allowed"

A String value that specifies the error text.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to NotAllowedFileExtensionErrorText
ASP.NET Web Forms Controls ASPxUploadControl
.ValidationSettings .NotAllowedFileExtensionErrorText
ASP.NET MVC Extensions UploadControlBinderSettings
.ValidationSettings .NotAllowedFileExtensionErrorText
.ValidationSettings .NotAllowedFileExtensionErrorText


If the uploaded file’s extension is not listed within the UploadControlValidationSettings.AllowedFileExtensions property, an error text specified by the NotAllowedFileExtensionErrorText property is displayed within the ASPxUploadControl‘s specific error frame.

See Also