Binding Dropdown List From Code-Behind
<p>I would like to display all my category names in a drop down menu in the latest .net framework. So far, all I have is:</p>

<pre><code>&lt;asp:DropDownList ID="DDCategories" runat="server"&gt;
    &lt;asp:ListItem&gt;
    &lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>Now I need in Code-Behind to tell the Dropdown that I would like to list all the <code>Name</code> under <code>[Category]</code> in my database. The reason for this is that I am going to create a product in which I would like to choose a category name, but I don't know how to display them in a dropdown.</p>
