Tuesday, 22 March 2022

ViewImports file

 # ViewImports file

1. _ViewImports.cshtml file is usually placed in the Views folder. It is used to include the common namespaces so we do not have to include them in every view that needs those namespaces.  
2. Just like, _ViewStart file, _ViewImports file is also hierarchical. In addition to placing it in the Views folder, we can also place another _ViewImports in the "Home" sub-folder in the Views folder.

No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...