DropDownList选中值,不存在的时候不出错的写法
this.DdlGroup.SelectedIndex = Term_ID.Length > 0 ? (this.DdlGroup.Items.IndexOf(this.DdlGroup.Items.FindByValue(Term_ID))) : (0);
this.DdlGroup.SelectedIndex = Term_ID.Length > 0 ? (this.DdlGroup.Items.IndexOf(this.DdlGroup.Items.FindByValue(Term_ID))) : (0);