我做了AutoPostBack="true"然后它正在工作......但它进入页面加载并且没有发生我想要的......
我怎样才能解决这个问题 ?
<asp:DropDownList ID="cmbSav_TransferType" runat="server" OnSelectedIndexChanged="cmbSav_TransferType_SelectedIndexChanged">
<asp:ListItem>---Select---</asp:ListItem>
<asp:ListItem>Own Account</asp:ListItem>
<asp:ListItem>Third Party</asp:ListItem>
</asp:DropDownList>
代码背后
protected void cmbSav_TransferType_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbSav_TransferType.SelectedValue == "Own Account")
{
multiview_AccountTransfer.ActiveViewIndex = 0;
}
if (cmbSav_TransferType.SelectedValue == "Third Party")
{
multiview_AccountTransfer.ActiveViewIndex = 1;
}
}