Answers

Question and Answer:

  Home  ASP Dot Net MVC

⟩ Explain a program using Razor view engine to create a simple application?

-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.

 162 views

More Questions for you: