关于下拉列表框联动的问题,求解
protected void ddlOrgan_SelectedIndexChanged1(object sender, EventArgs e) { string OrganId = this.ddlOrgan.SelectedValue; DataTable dt = bll.BindAccountDownList(OrganId); this.ddlAccountId.DataValueField = "UserID"; this.ddlAccountId.DataTextField = "UserName"; this.ddlAccountId.DataSource = dt; this.ddlAccountId.DataBind(); }
<asp:DropDownList ID="ddlOrgan" runat="server" Width="140" AutoPostBack="True" onselectedindexchanged="ddlOrgan_SelectedIndexChanged1"> </asp:DropDownList>