kw66722
asked on
Dropdown list creating values from current year
I am using dot net and I want to create a dropdown list that contains the current year and the next ten years. I am not sure how to populate the table.
Something like below which does not work.
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="=year(getdate())">< /asp:ListI tem>
<asp:ListItem Value="=year(getdate() + 1)"></asp:ListItem>
</asp:DropDownList>
Something like below which does not work.
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="=year(getdate())"><
<asp:ListItem Value="=year(getdate() + 1)"></asp:ListItem>
</asp:DropDownList>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER