webdiyer / mvcpager Goto Github PK
View Code? Open in Web Editor NEWMvcPager is a free and open source paging component for ASP.NET MVC
License: Apache License 2.0
MvcPager is a free and open source paging component for ASP.NET MVC
License: Apache License 2.0
一直在用MvcPager库,非常感谢作者,请推出支持.net core版本
Html:
cshtml:
@Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex" })
controller:
/// 新闻列表
///
///
public ActionResult List(int pageIndex = 1)
{
NewsMainTBService service = new NewsMainTBService();
var list = service.GetList().ToPagedList(pageIndex, 20) ;
return View(list);
}
NewsMainTBService:
public List GetList()
{
return _repository.GetList("where DeleteFlag=0 order by IsTop desc, AddTime desc").ToList();
}
can tell me why html is error?
I tried to add "@Html.Pager(Model).Options(o => o.SetPageIndexParameterName("id").SetPagerItemTemplate("{0} "))" in the end of my code, but the project did not could not find Html.Pager, will you please help me? I had imported "using Webdiyer.WebControls.Mvc;" in my controller.
Hi,
Appreciate you making MVCPager available.
I was hoping you could look at Stack Overflow question http://stackoverflow.com/questions/39736287/ajax-call-not-hitting-required-mvc-route. It appears that MVCPager may somehow be contributing to the issue being seen.
Cheers,
webdiyer.com
官网好像挂掉了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.