Web/Admin/Paper/PaperByRandomSelectionList.aspx.cs
(完整代码) 1KBusing System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
using Entity;
using BLL;
using Tool;
public partial class Admin_Paper_PaperByRandomSelectionList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RoleCheck.DenyLogin();
if (!IsPostBack)
{
int pageNum = 1;
if (Request.QueryString["pageNum"] != null)
pageNum = Convert.ToInt32(Request.QueryString["pageNum"]);
BindPaperList(pageNum);
}
}
private const int PAGE_SIZE = 20;
private void BindPaperList(int pageNum)
{
PageList<PaperByRandomSelection> list = new BLLPaperByRandomSelection().GetPaperList(pageNum, PAGE_SIZE);
Repeater1.DataSource = list.RecorderList;
Repeater1.DataBind();
lblPageUrl.Text = StringHelper.MakePageUrl("?pageNum=", pageNum, list.PageCount, list.RecorderCount);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
