A
amessimon
I need to display a drop down list which holds up to 250 listitems.
I'd like to create this programmatically rather than have to hardcode it
into the page.
For example
<aspropDownList id="numYears" runat="server" name="numYears">
<asp:ListItem Value="0" Text="0 years" Selected="true" />
<asp:ListItem Value="1" Text="1 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="3" Text etc............. up to 250 years
Thanks in advance..
Simon Ames
I'd like to create this programmatically rather than have to hardcode it
into the page.
For example
<aspropDownList id="numYears" runat="server" name="numYears">
<asp:ListItem Value="0" Text="0 years" Selected="true" />
<asp:ListItem Value="1" Text="1 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="2" Text="2 year"/>
<asp:ListItem Value="3" Text etc............. up to 250 years
Thanks in advance..
Simon Ames