<%=>;前段访问后台代码

  共<%=recordCount %>条记录,每页显示<%=pageSize %>条,共<%=  (int)Math.Ceiling((double)recordCount / pageSize)%>页

public partial class NewsList : System.Web.UI.Page
{
        public int pageSize=3;
        public int pageIndex=0;
        public int recordCount=0;
         }

你可能感兴趣的:(代码)