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 = 16; //绑定页码 string pageUrl = "/case/" + category_id + "/__id__.html"; string whereStr = "status=0"; //bll.GetList("goods", category_id, pageSize, pageIndex, whereStr, "sort_id asc,id desc", out recordCount); DataSet ds = bll.GetList("goods", category_id, 100, whereStr, "sort_id asc,id desc"); RepBindPic2.DataSource = ds; RepBindPic2.DataBind(); RepBindPic.DataSource = ds; RepBindPic.DataBind(); pageHtmlStr = OutPageList(pageSize, pageIndex, recordCount, pageUrl, 6); }
private void GetModel(int id) { BLL.article bll = new BLL.article(); model = bll.GetModel(id); if (model != null) { RepNewsRed(model.category_id); BindPrev(model.category_id, model.id); BindNext(model.category_id, model.id); RepBindPic.DataSource = model.albums; RepBindPic.DataBind(); RepBindPic2.DataSource = model.albums; RepBindPic2.DataBind(); } }
private void BindPic() { BLL.article bll = new BLL.article(); RepBindPic.DataSource = bll.GetList("content", 54, 100, "status=0", "sort_id asc,id desc"); RepBindPic.DataBind(); }