top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Write a program using Razor view engine to create a simple application?

0 votes
38 views
Write a program using Razor view engine to create a simple application?
posted Sep 8, 2016 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

-Razor view engine is an expressive language that is used with ASP.NET MVC.

-Razor uses @character and doesn’t need the code block to be explicitly written like code nuggets.

<h1> Razor </h1>
<h2> This @name, is very useful and it shows @DateTime.Now.Year </h2>
<p> Checkout <a href= “Product/@productId”> the product</a> 

-Razor uses the semantic parser to use it within the code blocks. It identifies the statements as a self contained code blocks and implicitly closes it.

-Razor is more easily available and use as it allows fast coding to be written without using complex syntaxes.

answer Sep 13, 2016 by Shivaranjini
Similar Questions
+4 votes

When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...