为什么我的下拉框不能连动啊?
<asp:DropDownList ID="drp_dept" runat="server" DataTextField="dept_name" DataValueField="dept_ID" OnSelectedIndexChanged="drp_dept_SelectedIndexChanged"></asp:DropDownList> <asp:DropDownList ID="drp_major" runat="server" Width="115px" DataTextField="major_name" DataValueField="major_ID">
</asp:DropDownList>
protected void drp_dept_SelectedIndexChanged(object sender, EventArgs e)
{
string str_dr2 = "select * from lab_major where dept_ID='"+drp_dept.SelectedValue.ToString()+"'";
co_class_add.dr_Bind(str_dr2,drp_major);
drp_major.DataBind();
}
[此贴子已经被作者于2007-6-5 16:51:47编辑过]