(C# ASP.NET Core) Practice Exercises and Questions on Areas and Partial Views

(LEVEL IS BEGINNERS) These are practice questions and exercises on Areas and Partial Views in Razor Pages. Solve them and join our course for their solutions.
(Rev. 19-Mar-2024)

Categories | About |     |  

Parveen,

Table of Contents (top down ↓)

COMMERCIAL USE OF THIS CONTENT IS NOT ALLOWED

Exercises on Areas and Partial Views

for solutions please join our Course on ASP.NET Core with Project ("Find a Doctor")
  1. [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.

  2. [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.