How to set an asp:listitem to an enumeration value declaratively?
Posted
by Curtis White
on Stack Overflow
See other posts from Stack Overflow
or by Curtis White
Published on 2010-06-11T17:57:26Z
Indexed on
2010/06/14
18:52 UTC
Read the original article
Hit count: 181
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?
© Stack Overflow or respective owner