I'm going to assume that from the code you've added you want the Round Trip item to be the one that changes the view of your multiview. The way you have the event handler set up on your RadioButtonList is wrong. You can't handle a ActiveViewChanged
handler on a MultiView
with a radio button list.
The best thing is to add more to your radio button list like so
<asp:RadioButtonList ID="lstTrip" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" Font-Names="Arial" Font-Size="Small" onselectedindexchanged="lstTrip_SelectedIndexChanged">
<asp:ListItem Selected="True" Value="OneWay">One Way</asp:ListItem>
<asp:ListItem Value="RoundTrip">Round Trip</asp:ListItem>
<asp:ListItem Value="MultiCity">Multi City</asp:ListItem>
</asp:RadioButtonList>
Then just handle the event on the SelectedIndexChanged like you did
protected void lstTrip_SelectedIndexChanged(object sender, EventArgs e)
{
if (lstTrip.SelectedValue.ToLower() == "roundtrip")
{
//Change the selected multiview index
MultiView1.ActiveViewIndex = 1;
}
else
{
MultiView1.ActiveViewIndex = 0;
}
}
You really need to consider naming your controls more descriptively as if anyone else were to look at your code, they would have a hard time understanding it and potentially maintaining it.