Back to Devexpress

UploadControlValidationSettings.NotAllowedFileExtensionErrorText Property

aspnet-devexpress-dot-web-dot-uploadcontrolvalidationsettings-96fe1f6b.md

latest2.7 KB
Original Source

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("This file extension isn't allowed")]
public string NotAllowedFileExtensionErrorText { get; set; }
vb
<DefaultValue("This file extension isn't allowed")>
Public Property NotAllowedFileExtensionErrorText As String

Property Value

TypeDefaultDescription
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:

LibraryObject TypePath to NotAllowedFileExtensionErrorText
ASP.NET MVC ExtensionsUploadControlBinderSettings

.ValidationSettings .NotAllowedFileExtensionErrorText

| | UploadControlSettings |

.ValidationSettings .NotAllowedFileExtensionErrorText

| | ASP.NET Web Forms Controls | ASPxUploadControl |

.ValidationSettings .NotAllowedFileExtensionErrorText

|

Remarks

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

AllowedFileExtensions

UploadControlValidationSettings Class

UploadControlValidationSettings Members

DevExpress.Web Namespace