A
Andy B.
I have the following dropdownlist and enum. I want the listItem values for
the dropdownlist to be the enums values. How do you do this?
-- dropdownlist
<aspropDownList ID="HeadlinesTypeDropDown" runat="server">
<asp:ListItem Selected="True" Value="1">All</asp:ListItem>
<asp:ListItem Value="2">Current</asp:ListItem>
<asp:ListItem Value="3">Expired</asp:ListItem>
</aspropDownList>
--enum
public enum HeadlineType
All=1
Current=2
Expired=3
end enum
the dropdownlist to be the enums values. How do you do this?
-- dropdownlist
<aspropDownList ID="HeadlinesTypeDropDown" runat="server">
<asp:ListItem Selected="True" Value="1">All</asp:ListItem>
<asp:ListItem Value="2">Current</asp:ListItem>
<asp:ListItem Value="3">Expired</asp:ListItem>
</aspropDownList>
--enum
public enum HeadlineType
All=1
Current=2
Expired=3
end enum