Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8193491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:29:47+00:00 2026-06-07T04:29:47+00:00

I think Microsoft must have a reason for enhancing ASP.Net with RAZOR syntax. On

  • 0

I think Microsoft must have a reason for enhancing ASP.Net with RAZOR syntax.

On the Create New Website Project dialog of visual studio, there is another option for creating ASP.Net (Razor). The first time I came across the term Razor was when I read a book on Asp.Net MVC, I didn’t know it exists for ASP.Net

enter image description here

I know what the Razor syntax is for, introduced in MVC 3. Before asking this question, I decided to create a test project for ASP.Net (Razor) and see how it is different from the normal ASP.Net webforms and ASP.Net MVC. I discovered no Model/View/Controllers folders like we have in MVC.

I discovered that the Master page is specified differently and the Master page is cleaner, no more <asp:ContentPlaceHolder />

But my questions are:

  • I notice it uses .cshtml, are there no more codebehinds?
  • similarities and differences between ASP.Net (Razor) and ASP.Net MVC
  • Can it be extended to function like ASP.Net MVC e.g. adding Controller?View/Model, Custom Routing I guess?
  • Why does this exist when we have ASP.Net MVC? Wouldn’t this encourage reluctance to move to ASP.Net MVC?
  • and why would you choose ASP.Net+Razor over ASP.Net MVC?

UPDATE: ASP.NET Web Pages in particular was designed to make it easy for
people who already know HTML to add server processing to their pages.
It’s a good choice for students, hobbyists, people in general who are
new to programming. It can also be a good choice for developers who
have experience with non-ASP.NET web technologies

Update ASP.NET Web Pages ASP.NET Web Pages targets developers who want a simple web development story, along the lines of PHP. In the Web Pages model, you
create HTML pages and then add server-based code to the page in order
to dynamically control how that markup is rendered. Web Pages is
specifically designed to be a lightweight framework, and it’s the
easiest entry point into ASP.NET for people who know HTML but might
not have broad programming experience — for example, students or
hobbyists. It’s also a good way for web developers who know PHP or
similar frameworks to start using ASP.NET.

Asp.Net Web Pages

Please, I need your technical opinion.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:29:49+00:00Added an answer on June 7, 2026 at 4:29 am

    This is a great question. First, lets characterize Razor.

    Razor is an engine that parses server-side code an emits Html, just like ASP.NET Web Forms only with different and arguably more streamlined and terse syntax.

    Razor v. Web Forms Sidebar: In ASP.NET Web Forms you have to identify when you wanted to start writing server code with ‘<%’ and then when you were done writing server code you needed to identify that with ‘%>’. I love ASP.NET Web Forms, but that’s clunky. With Razor you identify when you want to start writing server code with ‘@’ and then the next time you start writing a server tag (starting with ‘<‘) it “figures out” that you’re done with server code. It’s a more concise way to write html intermingled with some server code.

    ASP.NET Web Pages is a framework for creating simple Web Applications. ASP.NET MVC is a framework for creating web applications with either the Web Forms or Razor engine using the Model-View-Controller (MVC) pattern. ASP.NET Web Forms is a framework for creating web applications using the Web Forms render engine.

    Ultimately the goal is to provide choice based on the sophistication of the application that is being built. Understanding each with assist you in making the correct choice for your application.

    Additional Links:

    • ScottGu’s Blog – Introducing Razor
    • ScottGu’s Blog – Introducing WebMatrix
    • ASP.NET Web Page with Razor Syntax (MSDN)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've a must to create wcf service with parameter. I'm following this http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8f18aed8-8e34-48ea-b8be-6c29ac3b4f41 First
I have ASP.Net MVC 2 and 3 installed. I've downloaded the complete source from
Is there such a thing? Maybe there should be, I don't think Microsoft built
I have an application which uses the microsoft kinect device. The thing is that
Think I have an integer array like this: a[0]=60; a[1]=321; a[2]=5; now I want
I have a Microsoft Access 2010 database(*). Now, using Visual Studio 2010, I want
I am running TeamCity on a virtual machine. I have installed the new Visual
I have an awkward situation in which I have a 32-bit lib that must
I have a large set of classic ASP pages to convert. I will be
MicrosoftMvcJQueryValidation.js is used by ASP.NET MVC 2 for client side validation. Having problems with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.