string ResponseText="";
   string text = "新闻文章内容";

   this.AspNetPager1.RecordCount = text.Length;
   int PageSize = this.AspNetPager1.PageSize;
   int PageIndex = this.AspNetPager1.CurrentPageIndex;

   if (this.AspNetPager1.CurrentPageIndex != text.Length / PageSize + 1)
   {
    ResponseText = text.Substring((PageIndex - 1) * PageSize, PageSize);
   }
   else
   {
    ResponseText = text.Substring((PageIndex - 1) * PageSize, text.Length - ((PageIndex - 1) * PageSize));
   }
   TB_View.Rows[0].Cells[0].InnerHtml = ResponseText;

相关文章:

  • 2022-02-27
  • 2022-12-23
  • 2021-06-30
  • 2021-10-10
猜你喜欢
  • 2021-09-15
  • 2021-11-11
相关资源
相似解决方案