title: How do you set the "Visible" property of a ASP.NET control from a Javascript function?
body: <p>Bascially I want to know the best way to hide/show an ASP.NET control from a Javascript function.  I figured I would just access the control in Javascript using:</p>
  
  <pre><code>var theControl = document.getElementById("txtEditBox");
  </code></pre>
  
  <p>Then just set the control's Visible property to true/false.  It doesn't seem to be working, I can't seem to figure out how to set "Visible" to true/false.  How can I do that?  Also, is that the best way to hide/show a ASP.NET control from a Javascript function?</p>
  
  <p>Thanks,
  Jeff </p>