C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
2
Reply
What is Razor View Engine?
Thennarasu N
9y
1.1k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Razer view starts with @
Mukesh Kumar
8y
0
Razor is the first major update to render HTML in MVC3. Razor was designed specifically as a view engine syntax. It has one main focus: code-focused templating for HTML generation. Here’s how that same markup would be generated using Razor:@model MvcMusicStore.Models.Genre @{ViewBag.Title = "Browse Albums";}
@Model.Name
Albums
@foreach (var album in Model.Albums) {
@album.Title
}
The Razor syntax is easier to type, and easier to read. Razor doesn’t have the XML-like heavy syntax. of the Web Forms view engine.
Thennarasu N
9y
0
Mention two instances where routing is not implemented or required?
What is the difference between Hashtable and Dictionary?
Message