.CSHTML Přípona souboru

ASP.NET Razor Webpage

Vývojář Microsoft
Popularita
4.1  |  46 Hlasů
 

Co je soubor CSHTML?

A CSHTML file is a C# HTML webpage file used by Razor, an ASP.NET view engine that generates webpages. It is similar to a standard ASP.NET webpage (.ASP or .ASPX file) but uses slightly different syntax. CSHTML files run on a web server, which generates HTML for a client web browser.

Další informace

Snímek obrazovky souboru .cshtml v Microsoft Visual Studio Code
Soubor CSHTML otevřený v Microsoft Visual Studio Code

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.

POZNÁMKA: Razor offers additional templating syntax operations besides those supported by the standard ASP.NET MVC default view engine.

Jak otevřít soubor CSHTML

You can open and edit a CSHTML file in any text or source code editor. Source code editors, such as Microsoft Visual Studio Code (cross-platform) and GitHub Atom (cross-platform), contain helpful features that make reviewing and editing CSHTML files easier.

Otevřete více než 400 formátů souborů pomocí File Viewer Plus.Stáhnout zdarma

Programy, které otevírají nebo odkazují na soubory CSHTML

Chrome OS
Součást operačního systému
Kategorie: Web
Aktualizováno: 2021-10-26

Ověřil FileInfo.com

Tým FileInfo.com nezávisle prozkoumal formát souboru ASP.NET Razor Webpage a aplikace Mac, Windows, and Linux uvedené na této stránce. Naším cílem je 100% přesnost a zveřejňujeme pouze informace o typech souborů, které jsme ověřili.

Pokud chcete navrhnout doplnění nebo aktualizaci této stránky, dejte nám vědět.