/// <summary> /// 友情链接 /// </summary> public void LoadDropDownList() { //各级部门网站 DataTable dtDept = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Dept); _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Dept); ddlDept.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0")); foreach (DataRow row in dtDept.Rows) { ListItem li = new ListItem(); li.Text = row["DownLinkName"].ToString(); li.Value = row["DownLinkHref"].ToString(); ddlDept.Items.Add(li); } //文化部门网站 DataTable dtCulture = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Culture); _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Culture); ddlCulture.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0")); foreach (DataRow row in dtCulture.Rows) { ListItem li = new ListItem(); li.Text = row["DownLinkName"].ToString(); li.Value = row["DownLinkHref"].ToString(); ddlCulture.Items.Add(li); } //友好文化网站 DataTable dtFriend = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Friend); _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Friend); ddlFriend.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0")); foreach (DataRow row in dtFriend.Rows) { ListItem li = new ListItem(); li.Text = row["DownLinkName"].ToString(); li.Value = row["DownLinkHref"].ToString(); ddlFriend.Items.Add(li); } //推荐媒体网站 DataTable dtMedia = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Media); _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Media); ddlMedia.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0")); foreach (DataRow row in dtMedia.Rows) { ListItem li = new ListItem(); li.Text = row["DownLinkName"].ToString(); li.Value = row["DownLinkHref"].ToString(); ddlMedia.Items.Add(li); } //基层单位网站 DataTable dtBasic = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Basic); _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Basic); ddlBasic.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0")); foreach (DataRow row in dtBasic.Rows) { ListItem li = new ListItem(); li.Text = row["DownLinkName"].ToString(); li.Value = row["DownLinkHref"].ToString(); ddlBasic.Items.Add(li); } }