Join Jess Chadwick for an in-depth discussion in this video Using the Razor syntax to render dynamic content, part of ASP.NET Core: Razor Pages.
- [Instructor] Serving static HTML and CSS files is great,…but, to put it mildly,…that's not really where Razor Pages excels.…So, now that I've shown you how to render static HTML,…let's get to the interesting stuff…and see how to use the Razor syntax…to generate dynamic HTML.…It's important to understand that…outside of few reserved keywords,…Razor itself has no vocabulary…or grammatical rules of it's own.…It's simply a way to embed code…expressed in other languages, such as C#, into your views,…execute that code at runtime,…and render the resulting output into your HTML…to produce dynamically generated content.…
It's ll start with the @ symbol.…Consider the Razor engine as a text file parser…with two modes, code or content.…As it read through each character of your view,…it tries to guess whether it should consider that character…content to be rendered in the browser,…or code to execute.…The @ symbol is your way of telling the Razor parser,…"Hey, I'm about to write some code."…Then you just write your code.…Notice how not only does Razor know…
- 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.