How do i populate dropdownlist through code?

sha_shivani

Member
Joined
Sep 28, 2006
Messages
11
Programming Experience
1-3
I want to populate the values mentioned below inside the code not on the frontend side like mentioned below.Can anybody tell me how can i populate it?

<td class="formDetail">Priority:</SMALL></STRONG></td>
<td><asp:dropdownlist id="cboPriority" tabIndex="3" runat="server" Width="88px">
<asp:ListItem Value="1">Low</asp:ListItem>
<asp:ListItem Value="2" Selected="True">Normal</asp:ListItem>
<asp:ListItem Value="3">High</asp:ListItem>
</asp:dropdownlist></td>
 
Back
Top