<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="View1" runat="server">
</asp:View>
<asp:View ID="View2" runat="server" >
<table class="style1" style="border: medium groove #808080">
......contents.....
</asp:view>
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>
我有一个单选按钮单向列表,单向,往返和多城市,我采取了多视图,在视图 2 中我添加了代码代码,并且我想在单击第二个单选按钮时显示该代码,即往返,怎么办。请帮忙