title: FindControl in ASCX UserControl
body: <p>I am trying to find a control a DIV that I have set to runat server in my ascx file, but when I debug it, I get the value of findcontrol is null so its not finding it, what am I doing wrong?</p>
  
  <p>This being called from my ASPX page:</p>
  
  <pre><code>        HtmlGenericControl div = (HtmlGenericControl)FindControl("search");
          div.Visible = false;
  </code></pre>
  
  <p>My ASCX Code:</p>
  
  <pre><code>&lt;div class="contactsearch" id="search" runat="server" visible='true'&gt;
  //mycontent
  &lt;/div&gt;
  </code></pre>