//初始化等级下拉框 public void Initddl() { for (int i = 0; i < Convert.ToInt32(Session["SecrecyLevel"]); i++) { string[] SecrecyLevels = new string[] { "四级", "三级", "二级", "一级", "管理员" }; dSecrecyLevel.Items.Add(SecrecyLevels[i], i.ToString()); } BLHelper.BLLBasicCode bs = new BLHelper.BLLBasicCode(); List <Common.Entities.BasicCode> bascode = bs.FindByCategoryName("著作类型"); for (int i = 0; i < bascode.Count; i++) { ddlMonographType.Items.Add(bascode[i].CategoryContent.Trim(), bascode[i].CategoryContent.Trim()); } }