how to add multiview in a radio button

Posted by Naveen31 on Stack Overflow See other posts from Stack Overflow or by Naveen31
Published on 2013-10-31T09:43:54Z Indexed on 2013/11/08 9:55 UTC
Read the original article Hit count: 213

protected void ddlto_SelectedIndexChanged(object sender, EventArgs e)
{

}
protected void RadioButton1_CheckedChanged1(object sender, EventArgs e)
{
    MultiView1.ActiveViewIndex = 0;
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
    MultiView1.ActiveViewIndex = 2;
}

<asp:RadioButtonList ID="RadioButtonList2" runat="server" AutoPostBack="True" 
                                            RepeatDirection="Horizontal" Font-Names="Arial" Font-Size="Small" 
                                            onselectedindexchanged="MultiView1_ActiveViewChanged">
                                            <asp:ListItem Selected="True">One Way</asp:ListItem>
                                            <asp:ListItem>Round Trip</asp:ListItem>
                                            <asp:ListItem>Multi City</asp:ListItem>


                                        </asp:RadioButtonList>

i have a radiolist of thre buttons-one way,round trip and multicity, i have taken a multiview in which in view 2 i have added the codes codes,and i want to show that code when i click on the 2nd radio button i.e on round trip,how to do it. plzz help

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about radiobuttonlist