Пример #1
0
        //获取项目信息
        public void GetPageProject()
        {
            NameValueCollection Params = HttpContext.Request.Form;//参数
            string page    = Params["page"];
            string rows    = Params["rows"];
            string query   = Params["query"];
            int    intPage = int.Parse((page == null || page == "0") ? "1" : page);
            //每页显示条数
            int pageSize = int.Parse((rows == null || rows == "0") ? "10" : rows);
            //每页的开始记录  第一页为1  第二页为number +1
            int start = (intPage - 1) * pageSize;

            Response.Write(DProject.GetPageProject(start, pageSize, query, User.Identity.Name));
            Response.End();
        }