private void SiteBind() { DTcms.BLL.channel_site bll = new DTcms.BLL.channel_site(); DataTable dt = bll.GetList(0, "is_mobile=0", "sort_id asc,id desc").Tables[0]; this.ddlSiteId.Items.Clear(); this.ddlSiteId.Items.Add(new ListItem("所有站点", "")); foreach (DataRow dr in dt.Rows) { this.ddlSiteId.Items.Add(new ListItem(dr["title"].ToString(), dr["id"].ToString())); } }
private void TreeBind() { DTcms.BLL.channel_site bll = new DTcms.BLL.channel_site(); DataTable dt = bll.GetList(0, "", "sort_id asc,id desc").Tables[0]; this.ddlSitePath.Items.Clear(); this.ddlSitePath.Items.Add(new ListItem("请选择站点...", "")); foreach (DataRow dr in dt.Rows) { this.ddlSitePath.Items.Add(new ListItem(dr["title"].ToString(), dr["build_path"].ToString())); } }
private void TreeBind() { DTcms.BLL.channel_site bll = new DTcms.BLL.channel_site(); DataTable dt = bll.GetList(0, "", "sort_id asc,id desc").Tables[0]; this.ddlSitePath.Items.Clear(); this.ddlSitePath.Items.Add(new ListItem("请选择站点...", "")); foreach (DataRow dr in dt.Rows) { this.ddlSitePath.Items.Add(new ListItem(dr["title"].ToString(), dr["build_path"].ToString())); } }