Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Dot Net Technologies Interviews:.Net Architecture.Net Database.Net Deployment.NET web servicesADO.NETADO.NET 2.0ASP ProgrammingASP.NetASP.NET 2.0ASP.NET CachingASP.Net MVCBizTalkC# (Sharp) Programming LanguageCOM+Crystal ReportsDataGrid (Grid view)Dot NetDot Net AssemblyDot Net Code SecurityDot NET crystal reportsDot Net FrameworkDot Net RemotingDot Net WindowsFormsEntity FrameworkMicrosoft .Net MobileMicrosoft BasicsMicrosoft.NETMicrosoft.NET 2.0Mixed MicrosoftMono FrameworkMOSSMSFMTSReporting ServicesSenior .Net DeveloperVB .NetVB .Net DeveloperVB.NET FrameworkWCF (Windows Communication Foundation)WCF Data ServicesWeb Forms
Copyright © 2018. All Rights Reserved
ASP.Net MVC Interview Question:
What is Razor?
Submitted by: Administrator-When we need to include our c# or VB code with the HTML markup within ASP.NET Web pages then sometimes it becomes very tedious. To overcome this problem, Razor was implemented.
-Razor was introduced with ASP.NET MVC 3 to make ease of writing C# or VB code in HTML pages.
-There is no need to use ASP.NET delimiter <%= %>. We can use only “@” character to achieve the same goal.
-For example
<%= DateTime.Now %>
Can be written in Razor simply as
@DateTime.Now
-In razor all syntax starts with “@” and if there is only one line of code then there is no need to use “{“.
-The extension of Razor file is cshtml for C# work environment and vbhtml for Visual Basic work environment.
Submitted by: Administrator
-Razor was introduced with ASP.NET MVC 3 to make ease of writing C# or VB code in HTML pages.
-There is no need to use ASP.NET delimiter <%= %>. We can use only “@” character to achieve the same goal.
-For example
<%= DateTime.Now %>
Can be written in Razor simply as
@DateTime.Now
-In razor all syntax starts with “@” and if there is only one line of code then there is no need to use “{“.
-The extension of Razor file is cshtml for C# work environment and vbhtml for Visual Basic work environment.
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.