.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is Razor?

Posted By :Daniel Bhagathsingh     Posted Date :December 27, 2013    Points :40   Category :.NET Framework 
Razor is a view engine.

You can also find related Interview Question to What is Razor?  below: 

Is Razor a Programming language?

No. It is a markup syntax which help us to embed server codes in web pages. (More...)

Explain about Razor View Engine ?

This Razor View engine is a part of new rendering framework for ASP.NET web pages.
ASP.NET rendering engine uses opening and closing brackets to denote code (<% %>), whereas Razor allows a cleaner, implied syntax for determining where code blocks start and end.


In the classic renderer in ASP.NET:

    <% foreach (var userTicket in Model)

    { %>

  • <%: userTicket.Value %>

  • <% } %>

By using Razor:

    @foreach (var userTicket in Model)


  • @userTicket.Value

  • }


Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend