In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
No matter what you use to develop programs, you need to do pagination. At present, more and more people are using ASP.NET mvc to develop web applications. Corresponding helper methods and controls to improve development efficiency will appear. Today I'd like to introduce you to a pagination control used in the ASP.NET mvc framework.
Introduction to MvcPager
MvcPager pagination control is a series of extension methods to realize pagination function in ASP.NET MVC Web application. The initial realization method of pagination control draws lessons from some popular source codes on the Internet, especially PagedList class and related methods of ScottGu. After continuous improvement and improvement by webmaster, it is a mature and powerful ASP.NET MVC pagination solution.
The main functions of MvcPager are:
1. Implement the most basic url route paging;
2. Support manual input or selection of page index and validation of the input page index;
3. Support the use of ASP.NET MVC Ajax default Microsoft Ajax and Microsoft MvcAjax client script library to achieve Ajax paging;
4. Support the use of jQuery Ajax paging, generated Html code more streamlined;
5. Support Ajax pagination mode, if the client browser does not support or disable Javascript function security downgraded to normal pagination
6. Search engine friendly, search engines can search directly to all pages, whether it is normal pagination or Ajax pagination.
7. Support ASP.NET MVC 1.0 and the latest ASP.NET MVC 2.0 version;
8. Support IE, Firefox, Opera, Chrome and Safari and other common browsers;
9. Insert pagination control code:
10.
Example effect:View code:
MvcPager Standard Url Pagination Example
MvcPager Standard Url Pagination Example
Order Number Order Date Customer Number Shipping Address
Controller Code:
public ActionResult Index(int? id){ using (var db = new MvcPagerSampleDataContext()) { PagedList rders = db.Orders.ToPagedList(id ?? 1, 20); return View(orders); }}
10.JPG
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.