title: How to hide a button in .net 2010?
body: <p>I have a simple web for that has a dropdown list and a button on the form.
  The dropdown list is bound to a table in my database and holds three values with idents between 1 and 3 (Weekly, Monthly, Please Select).  </p>
  
  <p>I have set my datasource to pull back item 3 (Please Select) as the first item in the dropdown list to prompt the user to select an option.  Items 1 &amp; 2 have data assigned to them and this pulls back the relevent data for these options. </p>
  
  <p>Here is my problem.  I need to hide my button when the page loads until the user selects item 1 or 2 and would like the button to be hidden of option 3 is selected.  I have tried to complete this in my page load event and the code for the dropdown list but i cannot seem to get this to work.</p>
  
  <pre><code>    If IsNumeric(DropDownList1.SelectedValue) = 3 Then
          btnAddAgendaTemplate.Visible = False
      End If
  </code></pre>