Sei sulla pagina 1di 1

<asp:RadioButtonList ID="radioType" runat="server" RepeatDirection="Vertical" C ssClass="radioList" CellSpacing="10" OnSelectedIndexChanged="radioType_SelectedI ndexChanged"> <asp:ListItem Text="One Way" Value="1" id="div_oneway " style="padding-top:4px;padding-bottom:4px;padding-left:12px;padding-right:12px

;"></asp:ListItem> <asp:ListItem Text="Round Trip" Value="2" id="div_one way1" style="padding-top:4px;padding-bottom:4px;padding-left:12px;padding-right: 12px;margin-top:5px;"></asp:ListItem> </asp:RadioButtonList>

protected void radioOneWay_CheckedChanged(object sender, EventArgs e) { if (radioOneWay.Checked) { Panel1.Visible = true; Panel2.Visible = false; } } protected void radioRoundTrip_CheckedChanged(object sender, EventArgs e) { if (radioRoundTrip.Checked) { Panel1.Visible = false; Panel2.Visible = true; } }

Potrebbero piacerti anche