While browsing through an ASP.NET Core project, you notice that some HTML files have a .cshtml extension. What are these files called in the context of ASP.NET Core?
- Razor Views
- Web Forms
- HTML Templates
- XML Documents
Files with a .cshtml extension in an ASP.NET Core project are called Razor Views. Razor is a view engine that allows you to embed C# code within HTML to generate dynamic content. These files are responsible for rendering the HTML output for the web application.
Loading...
Related Quiz
- In an e-commerce application, you have a controller that manages orders, and it is protected using the [Authorize] attribute. However, you wish to allow a public tracking feature where users can see the status of their order without logging in. How would you implement this?
- You're setting up a new ASP.NET Core project, and you specifically need a template that provides user authentication out of the box. Which template should you select during the project setup?
- Your web application needs to provide different access levels, such as "Admin," "User," and "Guest." Which ASP.NET Core Identity feature would be crucial for implementing this?
- Which command is commonly used to create a new migration for ASP.NET Core Identity changes?
- How can you use a layout page in Razor to define a consistent page structure across views?