Asp Radiobutton error

118 views Asked by At

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?

1

There are 1 answers

2
Manish Vadher On BEST ANSWER

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") %> "/>