Web8/_Code/UI/ArtList.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace Tc.UI
{
public class ArtList : UIBase
{
public string types = "a";
public Model.TcFenlei cate = new Model.TcFenlei() { Name = "" };
public DataTable dt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void aspnetpage_PageChanged(object sender, EventArgs e)
{
var aspnetpage = sender as Wuqi.Webdiyer.AspNetPager;
int cid = Request.QueryString["c"].GetInt();
var where = "types='" + types + "'";
#region 设置条件
if (cid > 0)
{
where += " and Fenleiid=" + cid;
cate = BLL.TcFenlei.Instance.GetModel(cid);
if (cate == null)
{
cate = new Model.TcFenlei() { Name = "" };
}
}
#endregion 设置条件
int currentPage = Request.QueryString["page"].GetInt();
if (currentPage <= 0)
{
currentPage = 1;
}
int start = (currentPage - 1) * aspnetpage.PageSize + 1;
var sumcount = 0;
dt = BLL.BLLP.Instance.Get_Page_List("TcArticle", "id desc", start, aspnetpage.PageSize, where, out sumcount);
aspnetpage.RecordCount = sumcount;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。