N
Nathan Sokalski
I have a RadioButtonList with more than one ListItem that has a certain
Value. If I select a ListItem with that Value, the one that is selected is
the first ListItem with that Value. For example, if I had the following
ListItems:
<asp:ListItem Text="Boardgames" Value="12.00"/>
<asp:ListItem Text="Stuffed Animals" Value="8.00"/>
<asp:ListItem Text="Pens" Value="3.00"/>
<asp:ListItem Text="Mouse Pad" Value="2.00"/>
<asp:ListItem Text="Screwdriver" Value="12.00"/>
<asp:ListItem Text="Notecards" Value="3.00"/>
If someone were to select Notecards, the ListItem that would end up being
selected would be Pens, and if Screwdriver was selected, it would actually
select Boardgames. This problem only occurs when ListItems have the same
value. I am using AJAX when this is occurring. Does anybody have any
suggestions for an easy way to avoid this problem without changing the
Values? Thanks.
Value. If I select a ListItem with that Value, the one that is selected is
the first ListItem with that Value. For example, if I had the following
ListItems:
<asp:ListItem Text="Boardgames" Value="12.00"/>
<asp:ListItem Text="Stuffed Animals" Value="8.00"/>
<asp:ListItem Text="Pens" Value="3.00"/>
<asp:ListItem Text="Mouse Pad" Value="2.00"/>
<asp:ListItem Text="Screwdriver" Value="12.00"/>
<asp:ListItem Text="Notecards" Value="3.00"/>
If someone were to select Notecards, the ListItem that would end up being
selected would be Pens, and if Screwdriver was selected, it would actually
select Boardgames. This problem only occurs when ListItems have the same
value. I am using AJAX when this is occurring. Does anybody have any
suggestions for an easy way to avoid this problem without changing the
Values? Thanks.