protected void bindDplOption(Dictionary <DropDownList, string> dict) { foreach (KeyValuePair <DropDownList, string> d in dict) { d.Key.DataSource = LabelHelper.getSecondOptionName(d.Value); d.Key.DataBind(); } }
/// <summary> /// 绑定各种二级选项 /// </summary> /// <param name="dpl">需要绑定的下拉框</param> /// <param name="firstLevel">一级选项</param> protected void bindDplOption(ref DropDownList dpl, string firstLevel) { dpl.DataSource = LabelHelper.getSecondOptionName(firstLevel); dpl.DataBind(); }