ASP.NET Razor Webpage
4.1 | 45 Votes
What is a CSHTML file?
CSHTML files are similar to .VBHTML (Visual Basic HTML) files. However, they use syntax that is closer to the C# language than the Visual Basic language.
One easy way to recognize a CSHTML file is to look for @ symbols that precede Razor reserved directives and code blocks. CSHTML files use the @ symbol and Razor reserved directives to transition from HTML markup to C# code.
Most CSHTML files are created in Microsoft Visual Studio. Visual Studio provides syntax highlighting and Intellisense code suggestions that help developers create CSHTML files.
NOTE: Razor offers additional templating syntax operations besides those supported by the standard ASP.NET MVC default view engine.