本文整理汇总了C#中Pagination.getStringPagination方法的典型用法代码示例。如果您正苦于以下问题:C# Pagination.getStringPagination方法的具体用法?C# Pagination.getStringPagination怎么用?C# Pagination.getStringPagination使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pagination
的用法示例。
在下文中一共展示了Pagination.getStringPagination方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: showData
private void showData()
{
string ID = Request.QueryString["ID"];
int total = 0;
_Page = Request.QueryString["Page"] == null ? "1" : this.IsPostBack ? "1" : Request.QueryString["Page"];
_Limit = ddlPageSize.SelectedValue;
dt = DataAccess.getProjectLogo("-1", _Page, _Limit, ref total);
_Total = total.ToString();
int from, to;
from = _Total == "0" ? 0 : (1 + (Convert.ToInt32(_Page) - 1) * Convert.ToInt32(ddlPageSize.SelectedValue));
to = Convert.ToInt32(ddlPageSize.SelectedValue) * Convert.ToInt32(_Page) <= Convert.ToInt32(_Total) ? Convert.ToInt32(ddlPageSize.SelectedValue) * Convert.ToInt32(_Page) : Convert.ToInt32(_Total);
_Status = "<span class='actived_true'>Viewing " + from.ToString() + " to " + to.ToString() + " of " + _Total + "</span>";
Pagination pg = new Pagination();
pg.Limit = Convert.ToInt32(_Limit);
pg.PageNumber = Convert.ToInt32(_Page);
pg.Total = Convert.ToInt64(_Total);
pg.Page = "Pages";
pg.First = "|<";
pg.Next = ">";
pg.Previous = "<";
pg.Last = ">|";
pg.ItemShowNumber = 10;
pg.URL = "";//Session["PageOriginal"].ToString();
_Pagination = pg.getStringPagination();
//loadColFilter();
}
示例2: showData
private void showData()
{
string ID = Request.QueryString["Id"];
int total = 0;
_Page = Request.QueryString["Page"] == null ? "1" : this.IsPostBack ? "1" : Request.QueryString["Page"];
_Limit = "10";
projects = DataAccess.getProjects("-1", _Page, _Limit, ref total);
_Total = total.ToString();
int from, to;
from = _Total == "0" ? 0 : (1 + (Convert.ToInt32(_Page) - 1) * 10);
to = 10 * Convert.ToInt32(_Page) <= Convert.ToInt32(_Total) ? 10 * Convert.ToInt32(_Page) : Convert.ToInt32(_Total);
//_Status = "<span class='actived_true'>Hiển thị từ " + from.ToString() + " đến " + to.ToString() + " trong tổng số " + _Total + " bản ghi</span>";
Pagination pg = new Pagination();
pg.Limit = Convert.ToInt32(_Limit);
pg.PageNumber = Convert.ToInt32(_Page);
pg.Total = Convert.ToInt64(_Total);
pg.Page = "";
pg.First = "|<";
pg.Next = ">";
pg.Previous = "<";
pg.Last = ">|";
pg.ItemShowNumber = 10;
pg.URL = "";//Session["PageOriginal"].ToString();
_Pagination = pg.getStringPagination();
//loadColFilter();
}