最近想做一个COMBOX选择后,另外一个SELECBOX加载不一样的内容
前台
后台
protected void cbtype_change(object sender, DirectEventArgs e) { if (this.cbtype.Text.Trim() == "1")//菜单叶子 { this.Store1.DataSource = new DAL.TreeDAO().GetMeunList(0); this.DataBind(); } else { this.Store1.DataSource = new DAL.TreeDAO().GetMeunList(1); this.DataBind(); } }
上图: