UploadControlValidationSettings.FileDoesNotExistErrorText Property
OBSOLETE
This property is not used any longer.
Gets or sets the error text which indicates that the file selected for upload doesn’t exist on the client computer.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
[DefaultValue("The uploading file '{0}' doesn't exist")]
[Obsolete("This property is not used any longer.")]
public string FileDoesNotExistErrorText { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | "The uploading file '{0}' doesn't exist" | A String value that specifies the error text. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to FileDoesNotExistErrorText |
---|---|---|
ASP.NET MVC Extensions | UploadControlBinderSettings |
|
UploadControlSettings |
|
|
ASP.NET Web Forms Controls | ASPxUploadControl |
|
Example
<dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" OnFileUploadComplete="uc_FileUploadComplete">
<ValidationSettings AllowedFileExtensions=".txt,.jpg,.jpe,.jpeg,.doc" MaxFileSize="1000000"
FileDoesNotExistErrorText="A file cannot be found."
GeneralErrorText="File uploading fails due to an external error that doesn't relate to the ASPxUploadControl's functionality."
MaxFileSizeErrorText="Uploaded file size exceeds the maximum file size."
NotAllowedFileExtensionErrorText="The file extension is not allowed.">
<ErrorStyle BackColor="Yellow" ForeColor="Black" />
</ValidationSettings>
</dx:ASPxUploadControl>
protected void uc_FileUploadComplete(object sender, DevExpress.Web.FileUploadCompleteEventArgs e) {
if (e.IsValid) {
ASPxUploadControl1.SaveAs(MapPath("Images/" + ASPxUploadControl1.FileName));
}
}
See Also