What file extension is commonly associated with Razor views?
- .html
- .cshtml
- .js
- .css
Razor views in ASP.NET Core commonly use the file extension ".cshtml." This extension indicates that the file contains both HTML markup and C# or VB.NET code, which can be executed on the server to generate dynamic web content.
Loading...
Related Quiz
- What is the primary function of the dotnet command when used without any additional arguments in the CLI?
- How does the "Worker Service" template in ASP.NET Core differ from the traditional web application templates?
- The asp-action attribute in a Razor form specifies the _________ to which the form will be submitted.
- ASP.NET Core supports the dependency injection design pattern. The __________ method in the Startup.cs file is used to configure services for this purpose.
- In the context of Razor, what were "Master Pages" used for in the older versions of ASP.NET?