ASP.Net Web Page | |
Microsoft | |
Ads |
File with .CSHTML extension contains Razor C# code and HTML format data generated by Razor ASP.NET server. This type of file is similar to ASP and ASPX file formats, but uses different programming syntax. It offers more powerful tools for creating templates compared with standard MVC engine offered by ASP.NET. VBHTML file format offers similar functionality and is based on Visual Basic programming language.
CSHTML files are executed on server side by Razor view engine, which generates website HTML file and runs it in user’s web browser. These files can be created using dedicated Microsoft Visual Studio environment, which supports syntax highlighting and a verification of the code syntax, as well as Intellisense features such as hinting and automatic code completion. C# code blocks are enclosed in block contained within @ markers to separate it from HTML content.