private void Display() { BLL.article bll = new BLL.article(); int pageIndex = 1; if (!string.IsNullOrWhiteSpace(Request.QueryString["page"])) { pageIndex = Convert.ToInt32(Request.QueryString["page"]); } int pageSize = 8; //绑定页码 string pageUrl = "/news/" + category_id + "/__id__.html"; string whereStr = "status=0"; RepBindList.DataSource = bll.GetList("news", category_id, pageSize, pageIndex, whereStr, "sort_id asc,id desc", out recordCount); RepBindList.DataBind(); pageHtmlStr = OutPageList(pageSize, pageIndex, recordCount, pageUrl, 6); }
private void BindPic() { BLL.article bll = new BLL.article(); RepBindList.DataSource = bll.GetList("content", 52, 50, "status=0", "sort_id asc,id desc"); RepBindList.DataBind(); }
private void BindList() { BLL.article bll = new BLL.article(); RepBindList.DataSource = bll.GetList("kfqt", 100, "status=0 and is_red=0", "sort_id asc,id desc"); RepBindList.DataBind(); }