Enable or Disable the UploadBox in EJ 1 ASP.NET MVC UploadBox

5 Oct 2015 / 1 minute to read

The Enabled property is Boolean type, which allow us to set the enable or disable the UploadBox. By default value of Enabled property is true.

The following steps explain the configuration of Enabled property in UploadBox.

  1. In the VIEW page, add below script to configure the UploadBox element.

       
      // In the CSHTML page, add the UploadBox element.
    
      @Html.EJ().Uploadbox("uploadbox").SaveUrl("Uploadbox/Save").RemoveUrl("Uploadbox/Remove").Enabled(false)
  2. The following screenshot displays the output.

Enable-or-Disable-the-UploadBox_img1