Data not appearing in dropdownlist
<p>Now I have double checked this, I have found it was just bad positioning, but now I am coming up with the error of the data not being added to the box and it's just displaying blank on the page, not even the "empty" text is appearing in it but the data is being found as it is displaying when I am debugging and hitting the adding part</p>

<pre><code>public class BrandDropDownList : DropDownList
{

    protected override void OnLoad(EventArgs e)
    {
        BrandListRetrieve();
        base.OnLoad(e);
    }

    public void BrandListRetrieve()
    {
        var factory = new BrandFactory();
        var customBool1State = factory.ByCustomBoolean1(true, CoreHttpModule.Session);

        if (customBool1State != null)
        {
            var brandDropDown = CoreHttpModule.Session.CreateCriteria(typeof(Brand)).List&lt;Brand&gt;();
            DropDownList brandDropDownList = new DropDownList();

            foreach (Brand brand in brandDropDown)
            {
                brandDropDownList.Items.Add(brand.Name);
            }

            if (brandDropDownList.Items.Count &lt; 0)
            {
                brandDropDownList.Items.Insert(0, new ListItem("Hello World", "Hello World"));
            }

            brandDropDownList.DataBind();
        }
    }
}
</code></pre>

<p>The ASP.NET</p>

<pre><code>&lt;needlesports:BrandDropDownList runat="server" Visible="true"  /&gt;
</code></pre>
