ASP.Net MVC 4 C# -- Details Paging (Previous/Next)

Posted on 2013-05-31
Medium Priority
Last Modified: 2015-12-08
How can I add "Previous/Next" buttons to the below
Details.cshtml code so only "Classic" Genre
items can be viewed ?
 1. run MvcMusicStore APP
 2. click on the "Classic" Genre
 3. below \Views\Store\GenreMenu.cshtml displays

      @model IEnumerable<MvcMusicStore.Models.Genre>
      <ul id="categories">
          @foreach (var genre in Model)
                "Browse", "Store",
                new { Genre = genre.Name }, null)
 4. click on an item
 5. below \Views\Store\Details.cshtml displays

@model MvcMusicStore.Models.Album

    ViewBag.Title = "Album - " + Model.Title;


    <img alt="@Model.Title" src="@Model.AlbumArtUrl" />

<div id="album-details">
        @String.Format("{0:F}", Model.Price)
    <p class="button">
        @Html.ActionLink("Add to cart", "AddToCart",
        "ShoppingCart", new { id = Model.AlbumId }, "")
Something like the below, but want as easy as possible
  ** http://stackoverflow.com/questions/1522622/creating-a-detailsview-pager-in-asp-net-mvc
  ** http://stackoverflow.com/questions/9496837/go-to-next-record-from-asp-net-mvc-details-view
  ** http://stackoverflow.com/questions/13298605/filter-and-pagination-in-mvc-4
Question by:finance_teacher
LVL 19

Accepted Solution

Manoj Patil earned 2000 total points
ID: 39211413

Author Comment

ID: 39212879
Below are two links I found.
Do you have any other links ?


Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files …
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question