Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET VB.NET
i have radiobuttonlist with in update panel.
 
radiobutton_selectchanged event are not fired.
 
<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 5-Nov-12 17:29pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You are missing OnSelectedIndexChanged="radiobutton_selectchanged" in the radio button
                <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
    protected void radiobutton_selectchanged(object sender, EventArgs e)
        {
 
        }
  Permalink  
v5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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 ….
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 746
1 OriginalGriff 345
2 Magic Wonder 131
3 Kishore Pogaru 130
4 Fredrik Bornander 130
0 OriginalGriff 5,705
1 Sergey Alexandrovich Kryukov 4,763
2 CPallini 4,570
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100