8 SportsStore: Navigation and cart

This chapter covers

  • Navigating between product categories
  • Correcting the pagination controls to support category navigation
  • Using sessions to store data between requests
  • Implementing a shopping cart using session data
  • Displaying the shopping cart contents using Razor Pages

In this chapter, I continue to build out the SportsStore example app. I add support for navigating around the application and start building a shopping cart.

Tip You can download the example project for this chapter—and for all the other chapters in this book—from https://github.com/manningbooks/pro-asp.net-core-7. See chapter 1 for how to get help if you have problems running the examples.

8.1 Adding navigation controls

The SportsStore ...

Get Pro ASP.NET Core 7, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.