Casel.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BLL.Article;
using CSA.DAL;
public partial class Casel : System.Web.UI.Page
{
protected string cur_Code, cur_Id, kindname, title, content;
protected DataRow drList;
protected DataTable dtKind, dtList, dtCat;
protected void Page_Load(object sender, EventArgs e)
{
BindNews();
}
protected void BindNews()
{
cur_Code = Request.QueryString["Code"]; //接收Code
cur_Id = Request.QueryString["Id"]; //接收传进来的Id
if (string.IsNullOrEmpty(cur_Code)) //如果没有Code传进,自定义Code
{
cur_Code = "0301";
}
dtCat = BLL.Article.Article.getList(cur_Code, 0);
int pageSize = 6;
dtList = CSA.DAL.PageHelper.getPage(dtCat, pageSize, AspNetPager1.CurrentPageIndex);
AspNetPager1.RecordCount = dtCat != null ? dtCat.Rows.Count : 0;
AspNetPager1.PageSize = pageSize;
}
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
BindNews();
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
