Tom Knowlton
asked on
Fill DropDownList from an enum
//Available via App_Code folder to all web pages...
public enum PeriodTypes
{
Monthly = 1,
Weekly,
Daily,
Yearly,
BiYearly
}
Can I fill a DropDownList using this enum, either by looping or straight assignment?
If I delete, modify, or add to the enum ... would the drop down list pick up the change?
And is it a "good idea" to do it that way? Or am I asking for trouble down the road?
public enum PeriodTypes
{
Monthly = 1,
Weekly,
Daily,
Yearly,
BiYearly
}
Can I fill a DropDownList using this enum, either by looping or straight assignment?
If I delete, modify, or add to the enum ... would the drop down list pick up the change?
And is it a "good idea" to do it that way? Or am I asking for trouble down the road?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
https://www.experts-exchange.com/questions/21922641/Binding-a-DropDownList-to-an-Enumeration.html?sfQueryTermInfo=1+dropdownlist+enum