Learn
_ViewImports.cshtml is a hidden page that is included at the top of each of the other pages. It is commonly used to add using
statements so all code has access to the correct namespaces and assemblies.
Our data project only uses the default include statements of this feature.
Instructions
1.
The file _ViewImports.cshtml is open. This hidden page is included at the top of each of the other cshtml pages.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.