ASP. Razor-Tags
Razor is not a programming language. It is the server-side markup language.
What is Razor?
Razor is a markup syntax that allows you to embed server-based code (Visual Basic and C #) into a Web page.
Server-based code can create dynamic Web content when a Web page is routed to a browser. When a Web page is requested, the server executes the server-based code in the page before returning the page to the browser. By running the server, the code can perform complex tasks, such as entering a database.
Razor is based on ASP, and is designed to create WEB applications. It features traditional ASP. NET, but is easier to use and easier to learn.
Razor syntax
Razor uses syntax similar to PHP and classic ASP.
Razor:
<ul> @for (int i = 0; i < ten; i++) {<li>@i</li>}</ul>
Php:
<ul><?php for ($i = 0; $i < $i + +) {echo ("<li> $i </li>");}?></ul>
Web Forms (classic ASP):
<ul><% for (int i = 0; i < i++) {%><li><% =i%></li><%}%></ul>
Razor Helper
The ASP. NET helper is a component that can be accessed through a few lines of simple Razor code.
You can use the Razor syntax to build your own helper, or use the built-in ASP.
Here is a brief description of some useful Razor helpers:
Web Grid (web grid)
Web graphics (Web graphic)
Google Analytics (Google Analytics)
Facebook Integration (Facebook integration)
Twitter integration (Twitter integration)
Sending email (send email)
Validation (verification)
Razor programming language
Razor supports C # (C Sharp) and VB (Visual Basic).
"Recommended"
1. ASP. NET free Video Tutorials
2. Share the ASP. NET Learning Notes (1)--webpages Razor
3. Share the ASP. NET Learning Notes (2)--webpages Introduction
4. Using the razor engine to generate a static page (ASP. NET MVC) instance
5. [ASP. NET MVC path]03-razor syntax