using System; using System.Collections.Generic; using System.Linq; using System.Web; using Webdiyer.WebControls.Mvc; namespace MvcGuestBook.Common { public static class MvcPaper { /// <summary> /// 重写PagedList可以使用List集合数据 /// </summary> /// &l…
public static HtmlString ShowPageNavigate(this HtmlHelper htmlHelper, int currentPage, int pageSize, int totalCount) { var redirectTo = htmlHelper.ViewContext.RequestContext.HttpContext.Request.Url.AbsolutePath; //获取请求的地址 pageSialPages = Math.Max((to…
摘要 现在基于ASP.NET MVC的分页控件我想大家都不陌生了,百度一下一大箩筐.其中有不少精品,陕北吴旗娃杨涛大哥做的分页控件MVCPager(http://www.webdiyer.com/)算作当下开源里面的佼佼者,曾经在使用过程中感觉效果非常棒,拜读其源码也受益非浅.但我在使用其中的linq进行分页操作时,如下: var log = from m in db.TESTA join n in db.TESTB on m.id equals n.id select new ResultMo…