Hi,
I have a html radio button inside repeater . I m facing two problems
when I m binding Value from code behind(using datatable in code behind) it is throwing error server tag not found.
how to get the selected value in code behind
My code till now is this.
asp:Repeater runat="server" ID="rptr1">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr> <td>
<span><input type="radio" runat="server" name="acd" class="radio" id="radio1" value='<%# DataBinder.Eval(Container.DataItem, "valuinfm")%>'/></td><td> <label for="radio"><%# DataBinder.Eval(Container.DataItem, "txtinfm")%></label></span></td>
<br />
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
anyone is having any idea where I m getting wrong. I used this approach because there was some bug in using asp.net radio button with repeater. I don't want to use javascript.
Basically i want to redirect to other page by having querystring which is "value" of radio button
Edited: // I have corrected it to single outer quotes now there is no error(Thanks to Brian) Values in radio button are different but still i can click both and also how I can detect which radio button is selected: