title: Can't get to custom control
body: <p>I have a custom control on my web form:</p>
  
  <pre><code>&lt;form id="form" runat="server"&gt;
        &lt;clc:CustomList 
          ID="myList" 
          runat="server" 
          AddButtonText="add"
          DeleteButtonText="del"
          MoveUpButtonText="up"
          MoveDownButtonText="down"/&gt;
          &lt;div id="test" runat="server"&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to get to this control from a static WebMethod.
  I get the Page object from current HttpContext, but it seems this page object has no contorls (controls count is 0).</p>
  
  <pre><code>[WebMethod]
  public static List&lt;CustomListControl.IListItem&gt; GetListItems()
  {
      Page page = HttpContext.Current.Handler as Page;
  
      Control control = null;
  
      if (page != null)
      {
          control = FindControlRecursive(page, "myList");
      }
      return null;
  }
  
  private static Control FindControlRecursive(Control root, string id)
  {
      if (root.ID == id)
      {
          return root;
      }
  
      foreach (Control c in root.Controls)
      {
          Control t = FindControlRecursive(c, id);
          if (t != null)
          {
              return t;
          }
      }
  
      return null;
  }
  </code></pre>
  
  <p>Any idea why or how to get to my control?
  Thanks!</p>