title: Hide button on drop down selection -1
body: <p>I need my create button to be hidden unless a facility is selected in my dropdown. When it is at -1 message i need my button to be hidden.</p>
  
  <p>Code for button</p>
  
  <pre><code>   &lt;asp:Button ID="btnCreate" runat="server" Text="Create New" Width="89px" Font-Size="X-Small" OnClick="btnCreate_Click" /&gt;
  </code></pre>
  
  <p>Drop down code</p>
  
  <pre><code>private void ResetForm()
  {
      try
      {
          //facility dropdown
          ddlFacility2.Items.Clear();
          ddlFacility2.DataSource = this.DataLayer.model.MS_spGetFacilityInfo(null).OrderBy(x =&gt; x.FacilityName);
          ddlFacility2.DataTextField = "FacilityName";
          ddlFacility2.DataValueField = "FacilityID";
          ddlFacility2.DataBind();
          ddlFacility2.Items.Insert(0, new ListItem("All Facility Records..", "-1"));
  
          BindGrid();
  
      }
      catch (Exception ex)
      {
          this.SetMessage(ex.ToString(), PageMessageType.Error);
          AISLogger.WriteException(ex);
      }
  }
  </code></pre>