View Single Post
  #48 (permalink)  
Old 08-23-2007, 10:40 PM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: ASP.NET Data Controls

hi rajesh,

Quote:
Originally Posted by rrrajesh84in View Post
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>&nbsp;</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>
__________________
Venkat
knowledge is Power

Last edited by Venkat : 08-23-2007 at 10:43 PM.
Reply With Quote