Model View Controller (MVC) Question:
Download Questions PDF

How do you specify comments using razor syntax?

Answer:

Razor syntax makes use of @* to indicate the begining of a comment and *@ to indicate the end. An example is shown below.
@* This is a Comment *@

Download MVC Interview Questions And Answers PDF

Previous QuestionNext Question
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?What are the file extensions for razor views?