Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have nested datalist ,


XML
<asp:DataList ID="datalist_iq" runat="server" DataKeyField="id" BorderColor="Red">
                               <ItemTemplate>

                                   <table border="1">
                                       <tr>
                                           <td>
                                               <asp:Label ID="label_question_head" runat="server" Style="word-wrap: break-word" Width="310px" Height="91px" Font-Bold="true" ForeColor="Maroon">
                                                                   <%#Eval("q_head") %>

                                               </asp:Label>


                                           </td>
                                       </tr>

                                       <tr>

                                           <td>
                                               <asp:RadioButtonList ID="RadioButton1" OnSelectedIndexChanged="RadioButton1_SelectedIndexChanged"   DataTextField="a_head" DataValueField="result" runat="server" Visible="true" >


                                               </asp:RadioButtonList>

                                           </td>
                                       </tr>
                                   </table>


                              </ItemTemplate>
                         </asp:DataList>









i want to get DataKeyField when i select item in radiobuttonlist
how can i get this event


i can retrive the radiobuttonlist by this code

C#
foreach (DataListItem dli in datalist_iq.Items)
{
     rblfilteritem = (RadioButtonList)dli.FindControl("RadioButton1");
    a_content = q_object.retrive_a((int)datalist_iq.DataKeys[dli.ItemIndex]);
    rblfilteritem.DataSource = a_content;
    rblfilteritem.DataBind();



}



but i want to access the event when i select one radiobutton
Posted
Comments
Sanket Saxena 5-May-14 0:07am    
You should use jQuery for that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900