title: Asp.net button visibility using javascript
body: <p>I am using a simple Asp.Net button and trying to hide it on page load event and I want to show it back after doing some client side script.</p>
  
  <p>I have tried out by this way <code>document.getElementById('&lt;%=Button1.ClientID %&gt;').style.visibility = "visible";</code>  and its not showing me up.</p>
  
  <p>So how do I enable it back?</p>
  
  <p>Page_Load:</p>
  
  <pre><code> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
   Button1.Visible = False
  End Sub
  </code></pre>
  
  <p>This is my script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      // Convert divs to queue widgets when the DOM is ready
      $(function () {
          $("#uploader").plupload({
              // General settings
              runtimes: 'gears,flash,silverlight,browserplus,html5',
              url: 'Final.aspx',
              max_file_size: '10mb',
              max_file_count: 25,
              chunk_size: '1mb',
              unique_names: true,
  
          // Resize images on clientside if we can
          //                    resize: { width: 320, height: 240, quality: 90 },
  
          // Specify what files to browse for
          filters: [
          { title: "Image files", extensions: "jpg,gif,png" },
          { title: "Zip files", extensions: "zip" }
      ],
  
          // Flash settings
          flash_swf_url: 'js/plupload.flash.swf',
  
          // Silverlight settings
          silverlight_xap_url: 'js/plupload.silverlight.xap'
      });
  
  
      // Client side form validation
      $('form').submit(function (e) {
          var uploader = $('#uploader').plupload('getUploader');
  
          // Files in queue upload them first
          if (uploader.files.length &gt; 0) {
              // When all files are uploaded submit form
              uploader.bind('StateChanged', function () {
                  if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
                      $('form')[0].submit();
                  }
              });
  
              uploader.start();
          }
          else
              alert('You must at least upload one file.');
  
          return false;
      });
      var uploader = $('#uploader').plupload('getUploader');
      uploader.bind('FileUploaded', function (up, file, res) {
          $('#showfilelist').append("&lt;div id=" + file.id + " class='thumb'&gt;&lt;a href='uploads/" + document.getElementById("currentDirectory").value + "/" + file.name + "' target='_blank' rel='gallery'&gt;&lt;img src='uploads/" + document.getElementById("currentDirectory").value + "/" + file.name + "' width='50' height='50'/&gt;&lt;/a&gt;&lt;/div&gt;");
          $('#Maintabs').tabs('enable', 1);
          document.getElementById('&lt;%=Button1.ClientID %&gt;').style.visibility = "visible"; 
      });
  
  
  });
  </code></pre>
  
  <p></p>