Basic example of DropdownList with populated data using ListItem

Amatya
Posted by Amatya under ASP.NET category on | Points: 40 | Views : 532
Basic example of DropdownList with populated data using ListItem

<asp:DropDownList ID="ddlLPMonth" runat="server" Width="50px" >
<asp:ListItem Value="1">Jan</asp:ListItem>
<asp:ListItem Value="2">Feb</asp:ListItem>
<asp:ListItem Value="3">Mar</asp:ListItem>
<asp:ListItem Value="4">Apr</asp:ListItem>
<asp:ListItem Value="5">May</asp:ListItem>
<asp:ListItem Value="6">June</asp:ListItem>
<asp:ListItem Value="7">July</asp:ListItem>
<asp:ListItem Value="8">Aug</asp:ListItem>
<asp:ListItem Value="9">Sep</asp:ListItem>
<asp:ListItem Value="10">Oct</asp:ListItem>
<asp:ListItem Value="11">Nov</asp:ListItem>
<asp:ListItem Value="12">Dev</asp:ListItem>
</asp:DropDownList>


Thanks
Amatya

Comments or Responses

Login to post response