void Bind() { string Where = ""; Repeater_list.DataSource = ___ROYcms_Blog_user_bll.GetList(30, Where, "id desc"); Repeater_list.DataBind(); }
/// <summary> /// Binds this instance. /// </summary> void Bind() { if (this.keyword == null || this.keyword == "") { this.keyword = "请输入关键字"; } int page = 0; string where = ""; if (Request["page"] != null && Request["page"] != "") { page = Convert.ToInt32(Request["page"]) - 1; } if (DropDownList_type.SelectedValue != "") { where = DropDownList_type.SelectedValue + " like '%" + this.keyword + "%' "; } else { where = " title like '%" + this.keyword + "%' "; } this.PageCont = ___ROYcms_news_Bll.GetCount(where) / 30 + 1; //分页的总数 PagedDataSource pg = new PagedDataSource(); pg.DataSource = ___ROYcms_news_Bll.GetList(where + " order by bh desc ").Tables[0].DefaultView; pg.AllowPaging = true; pg.PageSize = 30; pg.CurrentPageIndex = page; Repeater_list.DataSource = pg; Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void Bind() { Repeater_list.DataSource = ___ROYcms_Flash_bll.GetList("id>0 order by id desc "); Repeater_list.DataBind(); Repeater_MyList.DataSource = ___ROYcms_Flash_bll.GetList("user_id=" + ROYcms.Common.Session.Get("user_id")); Repeater_MyList.DataBind(); }
/// <summary> /// /// </summary> void _Bind() { try { Repeater_list.DataSource = ___ROYcms_Class_UGroup_bll.GetList(" UGroup_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("ugroup_id"))); Repeater_list.DataBind(); } catch { ROYcms.Common.MessageBox.Show(this, "该用户未绑定用户组或者无任何发布信息的权限!"); } }
/// <summary> /// 绑定数据 Binds this instance. /// </summary> void Bind() { try { ROYcms.Sys.BLL.ROYcms_remark bll = new ROYcms.Sys.BLL.ROYcms_remark(); Repeater_list.DataSource = bll.GetList(" NewID =" + Request["NewsId"]); Repeater_list.DataBind(); } catch { ROYcms.Common.MessageBox.Show(this, "绑定数据错误!"); } }
void Bind() { string Where = "user_id=" + this.User_id; if (Request["Tag"] != null) { Where = "user_id=" + this.User_id + " and tag like '%" + Request["Tag"] + "%' "; } Repeater_list.DataSource = ___ROYcms_Blog_bll.GetList(15, Where, "id desc"); Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void Bind() { try { Repeater_list.DataSource = ___ROYcms_UGroup_Workflow_bll.GetList(" UGroup_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("ugroup_id"))); Repeater_list.DataBind(); } catch { ROYcms.Common.MessageBox.Show(this, "运行出错! 该会员不属于有效的权限小组"); } }
void Bind() { if (Request["tag"] != null) { Repeater_list.DataSource = ___ROYcms_question_bll.GetList("tag like '%" + Server.UrlDecode(Request["tag"]) + "%'"); Repeater_list.DataBind(); } else { Repeater_list.DataSource = ___ROYcms_question_bll.GetAllList(); Repeater_list.DataBind(); } Repeater_tag.DataSource = ___ROYcms_Tag_bll.GetList("type = 'ASK'"); Repeater_tag.DataBind(); }
void Bind() { if (Request["id"] != null) { ___ROYcms_question_model = ___ROYcms_question_bll.GetModel(Convert.ToInt32(Request["id"])); if (___ROYcms_question_model != null) { title.Text = ___ROYcms_question_model.title; content.Text = ___ROYcms_question_model.content; ip.Text = ___ROYcms_question_model.ip; time.Text = ___ROYcms_question_model.end_time.ToString(); username.Text = ___GetUserDate("{name}", ___ROYcms_question_model.user_id); } Repeater_list.DataSource = ___ROYcms_result_bll.GetList("question_id=" + Request["id"]); Repeater_list.DataBind(); } }
/// <summary> /// /// </summary> void Bind() { string where = null; where += "id>-1"; try { Repeater_list.DataSource = BLL.GetList(Convert.ToInt32(Application["PageSize"]), Convert.ToInt32(ViewState["Page"]), where); Repeater_list.DataBind(); ViewState["PageCon"] = BLL.GetCount(where) / Convert.ToInt32(Application["PageSize"]) + 1; ViewState["PageContent"] = BLL.GetCount(where); } catch //异常处理 { Repeater_list.DataSource = null; Repeater_list.DataBind(); } }
void Bind() { if (Request["id"] != null) { ___ROYcms_Community_model = ___ROYcms_Community_bll.GetModel(Convert.ToInt32(Request["id"])); if (___ROYcms_Community_model != null) { this.Page.Title = ___ROYcms_Community_model.title + " - " + ___GetConfigValue("title"); this.title.Text = ___ROYcms_Community_model.title; this.content.Text = ___ROYcms_Community_model.content; this.Time.Text = ___ROYcms_Community_model.end_time.ToString(); this.ip.Text = ___ROYcms_Community_model.ip; this.user_name.Text = (___ROYcms_Community_model.user_id == "" ? "匿名用户" : ___GetUserDate("{name}", ___ROYcms_Community_model.user_id)); } Repeater_list.DataSource = ___ROYcms_Community_result_bll.GetList("Community_id=" + Request["id"]); Repeater_list.DataBind(); } Repeater_list_.DataSource = ___ROYcms_Community_bll.GetList(6, "", "bh desc"); Repeater_list_.DataBind(); }
void Bind() { Repeater_list.DataSource = ___ROYcms_Blog_result_bll.GetList(10, "id>0", "id desc"); Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void Bind() { Repeater_list.DataSource = BlogBLL.GetAllList(); Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void LIST_bind() { Repeater_list.DataSource = bll.GetAllList(); Repeater_list.DataBind(); }
void Bind() { Repeater_list.DataSource = ___ROYcms_Community_bll.GetAllList(); Repeater_list.DataBind(); }
/// <summary> /// Binds this instance. /// </summary> void Bind() { Repeater_list.DataSource = new ROYcms.Sys.BLL.ROYcms_Rss().GetList("User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id"))); Repeater_list.DataBind(); }
void Bind() { Repeater_list.DataSource = ___ROYcms_question_bll.GetAllList(); Repeater_list.DataBind(); }
void Bind() { Repeater_list.DataSource = ___ROYcms_Community_result_bll.GetList(10, "", "bh desc"); Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void Bind() { Repeater_list.DataSource = ___ROYcms_New_User_bll.GetList("User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id"))); Repeater_list.DataBind(); }
void Bind() { Repeater_list.DataSource = ___ROYcms_Blog_result_bll.GetList(10, "blog_id=" + Request["id"], "id desc"); Repeater_list.DataBind(); }
/// <summary> /// /// </summary> void Bind() { Repeater_list.DataSource = ___ROYcms_New_User_bll.GetList(30, Convert.ToInt32(Request["page"] == null ? "1" : Request["page"]), "User_id=" + Convert.ToInt32(ROYcms.Common.Session.Get("user_id")), 1); Repeater_list.DataBind(); }