I'm trying to render a radio button list in MVC 2 RC 2 (C#) using the following line:
<%= Html.RadioButtonFor(model => Enum.GetNames(typeof(DataCarry.ProtocolEnum)),
null) %>
but it's just giving me the following exception at runtime:
Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
Is this possible and if so, how, please?