.CSHTML File Extension

.CSHTML File Extension

File Type

ASP.NET Razor Webpage

Developer Microsoft
4.1  |  40 Votes
Category Web Files
Format Text

What is a CSHTML file?

A CSHTML file is a C# HTML webpage file used by Razor, an ASP.NET view engine used to generate webpages for a user's web browser. It is similar to a standard ASP.NET webpage (.ASP or .ASPX file) but uses a slightly different syntax. CSTML files run on a web server, which generates the HTML for the client web browser, and they can be programmed with syntax highlighting and Intellisense code suggestions using Microsoft Visual Studio.

More Information

CSHTML files are similar to .VBHTML (Visual Basic HTML) files, but they use syntax that is closer to the C# language than the Visual Basic language.

NOTE: Razor offers new templating syntax operations in addition to those supported by the standard ASP.NET MVC default view engine.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference CSHTML files

Updated January 22, 2021

Verified by FileInfo.com

The FileInfo.com team has independently researched the ASP.NET Razor Webpage file format and Windows apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.