Rouchie
asked on
Quick way of displaying A-Z options in a DropDownList?
Currently I have a DropDownList that displays the options A-Z as follows;
<asp:DropDownList runat="server" id="letterList" >
<asp:ListItem value="a">A</asp:ListItem>
<asp:ListItem value="b">B</asp:ListItem>
...etc
<asp:ListItem value="z">Z</asp:ListItem>
</asp:DropDownList>
Is there any way to achieve this quickly using some sort of looping functionality etc??
<asp:DropDownList runat="server" id="letterList" >
<asp:ListItem value="a">A</asp:ListItem>
<asp:ListItem value="b">B</asp:ListItem>
...etc
<asp:ListItem value="z">Z</asp:ListItem>
</asp:DropDownList>
Is there any way to achieve this quickly using some sort of looping functionality etc??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nope, there isn't an automatic way to get a-z.
ASKER