title: Web custom control with dropdown list
body: <p>I am trying to create a custom web control with a few controls on it, a textbox, label and dropdownlist, what I would like to do is add a property on the custom control to allow add select options on the dropdown list, the same way you would if it was just a normal dropdownlist i.e.</p>
  
  <pre><code>&lt;asp:DropDownList ID="normalddl" runat="server"&gt;
       &lt;asp:ListItem Text="1st value" Value="0"&gt;&lt;/asp:ListItem&gt;
       &lt;asp:ListItem Text="2nd value" Value="1"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>I want a custom control that will look something like this (this is a simplified version)</p>
  
  <pre><code>&lt;mycustomControl:ControlNamt ID="customddl" runat="server" &gt;
     &lt;asp:ListItem Text="1st value" Value="0"&gt;&lt;/asp:ListItem&gt; -- how would I go about adding this in the custom control?
      &lt;asp:ListItem Text="2nd value" Value="1"&gt;&lt;/asp:ListItem&gt;
  &lt;/mycustomControl:ControlNamt&gt;  
  </code></pre>