Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have radiobuttonlist with in update panel.

radiobutton_selectchanged event are not fired.

XML
<asp:Panel ID="SelectAttributesPanel" runat="server" Width="230px" BackColor="#F0F8FF" BorderColor="Black" BorderWidth="1" Font-Names="Verdana" Font-Size="X-Small" >
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
 <ContentTemplate>
                                        <asp:RadioButtonList ID="rdbRemarks" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
<asp:ListItem Value="F1">Accept</asp:ListItem>
<asp:ListItem Value="F1">Objection Clear</asp:ListItem>
<asp:ListItem Value="F4">Objection</asp:ListItem>
<asp:ListItem Value="R">Reject</asp:ListItem>
 </asp:RadioButtonList>
 </ContentTemplate>
 <Triggers>
 <asp:AsyncPostBackTrigger ControlID="rdbRemarks" EventName="SelectedIndexChanged" />
 </Triggers>
 </asp:UpdatePanel> </asp:Panel>
Posted

You are missing OnSelectedIndexChanged="radiobutton_selectchanged" in the radio button
ASP.NET
<asp:radiobuttonlist id="rdbRemarks" runat="server" AutoPostBack="True" repeatdirection="Horizontal" OnSelectedIndexChanged="radiobutton_selectchanged ">
    <asp:listitem value="F1">Accept</asp:listitem>
    <asp:listitem value="F1">Objection Clear</asp:listitem>
    <asp:listitem value="F4">Objection</asp:listitem>
    <asp:listitem value="R">Reject</asp:listitem>
</asp:radiobuttonlist>
also the code behind must have this handler defined
C#
protected void radiobutton_selectchanged(object sender, EventArgs e)
    {

    }
 
Share this answer
 
v5
Your All Code is almost right but u missing onselectedindexchanged events in radio button list so first double click events in radio button list in your design page so it generate radiobutton_selectchanged in back end code then check ….
 
Share this answer
 

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