B
Britney
hi I want to create an age drop-down list.
values for age is from 1 to 100. It seems so easy but I have to write over
100 lines of codes (100 listitems)
Is there a simple way to achieve the same solution as below?
<asp
ropDownList id="DdAgeStart" runat="server">
<asp:ListItem Value="1" Text="1"></asp:ListItem>
<asp:ListItem Value="2" Text="2"></asp:ListItem>
...........
</asp
ropDownList>
values for age is from 1 to 100. It seems so easy but I have to write over
100 lines of codes (100 listitems)
Is there a simple way to achieve the same solution as below?
<asp
ropDownList id="DdAgeStart" runat="server"><asp:ListItem Value="1" Text="1"></asp:ListItem>
<asp:ListItem Value="2" Text="2"></asp:ListItem>
...........
</asp
ropDownList>