0

I would like the Id correspond to the data in the dataitem so that I know on which radiobutton the user clicked: I write:

<asp:RadioButton ID="<%# DataBinder.Eval(Container.DataItem, "IdFlight") %> " runat="server" GroupName="Flights" />

But I get error of parser: the format of the tag is not correct. Any hint please?

user1238784
  • 2,250
  • 3
  • 22
  • 41

1 Answers1

1

You can use HTML Input Radio instead of ASP.net Radio. and write jquery function what you want.

<input type="radio" id="<%# DataBinder.Eval(Container.DataItem, "blog_id") %> "/>
Manish Vadher
  • 1,524
  • 15
  • 14
  • And what if OP wants to check thee checked state in code behind? – VDWWD May 11 '18 at 07:55
  • but you dont need to to this at all..put simply asp.net radio button with normal ID="chkStatus" and write code behind . RadioButton chkdel = (RadioButton)item.FindControl("chkStatus") in repeater items. – Manish Vadher May 11 '18 at 08:50