Join Jess Chadwick for an in-depth discussion in this video Passing parameters in the URL, part of ASP.NET Core: Razor Pages.
- [Instructor] In the previous video,…I showed you how to use Razor to execute C sharp logic,…that retrieves data, and renders it as mark up,…to create a beautiful data driven application,…with just a handful of lines of code and mark up.…The problem is, in order to make that work,…I had hard coded the ID of the recipe to display…in the recipe details page.…What I really want to be able to do…is to the see information for any recipe.…And, not only that, I want to be able to decide…which recipe to show based on the page's URL.…
In other words, in order to view the details of each recipe,…I'd like to modify the links on the index page…to pass the recipe ID on the URL, like this.…The ability to pass parameters through the URL like this,…and then retrieving them in a programmatic manner…is called routing.…And, in order for it to work, there are two parts involved.…First, you have to define the route,…and second, you need to retrieve the data from that route.…
The first part, defining the route, is simple enough.…
- Creating a new application
- Setting up pages
- Rendering dynamic content
- Reusing markup with layouts
- Increasing the maintainability of pages
- Processing data
- Validating input
- Securing an application
Skill Level Intermediate
Deploying ASP.NET Core Applicationswith Nate Barbettini57m 57s Intermediate
Building Web APIs with ASP.NET Corewith Chris Woodruff1h 7m Intermediate
ASP.NET Core: Test-Driven Developmentwith Richard Rout37m 30s Intermediate
1. Razor Pages Intro
What is Razor Pages?3m 5s
2. Razor Pages Basics
3. Reusing Markup with Layouts
4. Building Maintainable Applications
5. Working with Data
6. Validating User Inputs and Securing Your Application from Unauthorized Users
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.