Solved

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

Posted on 2013-05-31
2
661 Views
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 ?
------------------------------------------------------
Steps
 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)
          {
        <li>@Html.ActionLink(genre.Name,
                "Browse", "Store",
                new { Genre = genre.Name }, null)
        </li>
          }
      </ul>
 4. click on an item
 5. below \Views\Store\Details.cshtml displays
------------------------------------------------------

@model MvcMusicStore.Models.Album

@{
    ViewBag.Title = "Album - " + Model.Title;
}

<h2>@Model.Title</h2>

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


<div id="album-details">
    <p>
        <em>Genre:</em>
        @Model.Genre.Name
    </p>
    <p>
        <em>Artist:</em>
        @Model.Artist.Name
    </p>
    <p>
        <em>Price:</em>
        @String.Format("{0:F}", Model.Price)
    </p>
    <p class="button">
        @Html.ActionLink("Add to cart", "AddToCart",
        "ShoppingCart", new { id = Model.AlbumId }, "")
    </p>
</div>
------------------------------------------------------
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
0
Comment
Question by:finance_teacher
2 Comments
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 39211413
0
 

Author Comment

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

http://forums.asp.net/t/1707072.aspx/1
http://en.webdiyer.com/MvcPager
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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