hi all,
do anyone knows how to create a dynamic dropdownlist? the dropdownlist will retrieve the list items from database..
eg: below is code for static dropdownlist where i declare the listitem myself.. but how should i declare listitem retreive from database?
<asp:dropdownlist id="ddl" Runat="server">
<asp:ListItem Value="1">A</asp:ListItem> <asp:ListItem Value="2">B</asp:ListItem> <asp:ListItem Value="3">C</asp:ListItem>
</asp:dropdownlist>
thanks..