If you wish to control the scope of your Tag Helpers (i.e., which views or pages they are available in), which file should you modify?
- Startup.cs
- appsettings.json
- _ViewImports.cshtml
- Program.cs
To control the scope of your Tag Helpers, you should modify the _ViewImports.cshtml file. This file is where you can import namespaces and specify which Tag Helpers should be available globally across your views or pages.
Loading...
Related Quiz
- Which tool would you use for building, running, and managing .NET applications without an IDE?
- Which of the following middleware components is responsible for serving static files in an ASP.NET Core application?
- ASP.NET Core Identity is an extensible system for _________.
- Your ASP.NET Core application has a scenario where a user tries to update a record that another user has already modified. How can you handle such scenarios using Entity Framework Core to ensure data integrity?
- When configuring EF Core with ASP.NET Core, which class is typically used to represent the database's context?