Skip to main content
Tab

ASPxUploadControl.ShowUploadButton Property

Specifies the upload button visibility.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool ShowUploadButton { get; set; }

Property Value

Type Default Description
Boolean false

true, if the button is visible, otherwise, false.

Remarks

Use the ShowUploadButton property to specify whether the Upload button is visible within the ASPxUploadControl.

The appearance of this button can be customized by using the ASPxUploadControl.ButtonStyle property. The upload button‘s image and text are defined via the ASPxUploadControl.UploadButton property.

Example

This sample demonstrates how to use the ASPxUploadControl, and how to pass a file name that was saved on the server to the client, by using the server-side and client-side FileUploadComplete events.

     function OnUploadStart() {
         btnUpload.SetText("Uploading...");
         btnUpload.SetEnabled(false);
     }
     function OnUploadComplete(args) {
         btnUpload.SetText("Upload");
         btnUpload.SetEnabled(true);
         lblFileName.SetText(args.callbackData);
     }
See Also