Table of Contents (top down ↓)
Exercises on Areas and Partial Views
- [simple partial] Create an application that has a razor page called Index. Now add a partial page called _MyPartial that displays your name in an h1 tag. Use this partial in the Index page to display your name. The helper directives should be placed in a view imports file.
- [navigation to area] Create an application that has a razor page called index containing an anchor link. Add an Area called Albums. Inside this area there is an Index razor page that displays a welcome message in, say, an h1 tag. When the beforementioned anchor link is clicked, the user should navigate to the index page of the Albums area.
This Blog Post/Article "(C# ASP.NET Core) Practice Exercises and Questions on Areas and Partial Views" by Parveen is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.