Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:37:55+00:00 2026-05-26T22:37:55+00:00

Have a website project in MVC3 C # where I retrieve information from the

  • 0

Have a website project in MVC3 C # where I retrieve information from the database and presents in a table in my view. I want to use paging to show up to five lines per page. Have been looking for tutorials on Internet but they all seem very advanced to achieve it. What is the easiest way for paging with MVC3?

Look in the lower left corner of the picture to see what I mean by paging

paging http://www.syncfusion.com/content/en-US/products/feature/user-interface-edition/aspnet-mvc/grid/img/Paging_Larger.jpg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:37:56+00:00Added an answer on May 26, 2026 at 10:37 pm

    Try PagedList. There’s a NuGet package for MVC.

    @{
        ViewBag.Title = "Product Listing"
    }
    @using PagedList.Mvc; //import this so we get our HTML Helper
    @using PagedList; //import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)
    
    <!-- import the included stylesheet for some (very basic) default styling -->
    <link href="/Content/PagedList.css" rel="stylesheet" type="text/css" />
    
    <!-- loop through each of your products and display it however you want. we're just printing the name here -->
    <h2>List of Products</h2>
    <ul>
        @foreach(var product in ViewBag.OnePageOfProducts){
            <li>@product.Name</li>
        }
    </ul>
    
    <!-- output a paging control that lets the user navigation to the previous page, next page, etc -->
    @Html.PagedListPager( (IPagedList)ViewBag.OnePageOfProducts, page => Url.Action("Index", new { page }) )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have decided to use ASP.NET MVC for a website project and want to
I have a website project that I want to build using CruiseControl.net. On one
I have the following in my project (MVC3) N2CMS 2.2.1 (from nuget). I am
I have a website project that is consuming user controls from another shared project.
I have created a website using MVC3 along with the Razor view engine. What
I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't
I think this is pretty typical, you have the same website project with an
I have a C# solution with a website project and a C# library. When
I have a website (ASP.NET) and some winforms(.Net 2.0) for a project (written in
I have a project to setup an anonymous feedback form to our website. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.