I have this:
sp:RadioButtonList ID="rdlmhorsepType" Text='<%#Eval("horsepType").ToString()%>' runat="server" ValidationGroup ="stype" RepeatDirection="Horizontal" TextAlign="Right" style="display:inline;" AutoPostBack="true" OnSelectedIndexChanged="horsepType_SelectedIndexChanged">
<asp:ListItem Text="Electric" />
<asp:ListItem Text="Recoil" />
When a user enters his/her account number, if there is data associated with that account number, it populates a repeater form.
This part works fine.
The issue is that if no data is associated with that account number, I get the following error:
'horsepType' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value
In other words, if RadioButtonList is null, it throws that error.
I have several of those on my Repeater control.
Any ideas how to resolve this?
Thanks a lot in advance