How to set an asp:listitem to an enumeration value declaratively?
- by Curtis White
I have an asp:RadioButtonList and want to declaratively bind the value to an enumeration. I tried using this type syntax:
value = <%# ((int)MyEnum.Value).ToString() %"
I get an error list item does not support databinding. Any ideas?