hi rajesh,
Quote:
Originally Posted by rrrajesh84in hi
The primary key of the repeater ll be in the dataBinder so at the Databound event of the particular control. u can get the id
and store it in a variable and use it,
for eg:- Guid questionId = new Guid(DataBinder.Eval(e.Item.DataItem, "Id").ToString()); the above code should be placed inside the DataBound event of the control |
I have implemented the DataBinder i got the primary key and reterived all the information in nested repeater it working excellently. In this repeater i have to insert a radio button which i have done it. I am not getting the ID of the radio button in the code behind of the nested repeater can you help me....
<table>
<tr>
<td> </td>
<td>
<asp:RadioButtonList ID="personalityOptionRadioButtonList" runat="server" Width="100%" BorderWidth="0px" RepeatColumns="1" CssClass="text3" DataSource='<%#getPersonalityOption(DataBinder.Eva l(Container.DataItem,"Id"))%>' DataValueField="Id" DataTextField="Name"> </asp:RadioButtonList>
<asp:Label runat="server" ID="emptyOptionsLabel" Visible="false" CssClass="text3" Text="No options move to next question."></asp:Label>
</td>
</tr>
</table>