DotNet.WebApplication/Modules/Common/ControlsNavigator/ControlsNavigator.ascx.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//-----------------------------------------------------------------
// All Rights Reserved , Copyright (C) 2013 , Hairihan TECH, Ltd .
//-----------------------------------------------------------------
using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNet.Business;
/// <summary>
/// 分页控件
/// </summary>
public partial class ControlsNavigator : System.Web.UI.UserControl
{
/// <summary>
/// 页数
/// </summary>
public int PageCount
{
get
{
if (pageSize == 0)
{
return 0;
}
double pageCount = (double)this.RowCount / this.PageSize;
return (int)Math.Ceiling(pageCount);
}
}
/// <summary>
/// 记录数
/// </summary>
public int RowCount
{
get
{
return int.Parse(this.txtRowCount.Value);
}
set
{
this.txtRowCount.Value = value.ToString();
}
}
private bool allowPaging = false;
/// <summary>
/// 是否进行分页
/// </summary>
public bool AllowPaging
{
get
{
return this.allowPaging;
}
set
{
this.allowPaging = value;
后面还有 319 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
