I have a repeater inside a AjaxToolKit tabpanel on a ascx page of a website. The repeater is databound in codebehind and in the ascx like so:
<asp:TextBox ID="txtLastName" runat="server" Enabled="false" Font-Size="11px" Text='<%# Container.DataItem("Lastname")%>' Width="80px" Font-Names="Arial"></asp:TextBox></td>
<td style="text-align: center">
<asp:RadioButton ID="rdbAchieved" runat="server" />
I would like to check the radiobutton at runtime based on the value of another dataitem ("Achievement") in the datasource i.e. the radiobutton should be checked only if the dataitem ("Achievement") = 2
I know this can also be done in codebehind in the repeater's ItemDataBound event and I have done that with no problems but would like to know if the above is also possible?
Many thanks in advance.