Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 3 Razor documentation [closed]

Is there any documentation on how to use the Razor view engine using ASP.NET MVC 3?

Or any other resources?

I am trying to find it in Google and MSDN with no luck so far.

like image 789
mamu Avatar asked Aug 02 '10 15:08

mamu


People also ask

Does ASP.NET MVC use Razor?

Razor has no ties to ASP.NET MVC because Razor is a general-purpose templating engine. You can use it anywhere to generate output like HTML. It's just that ASP.NET MVC has implemented a view engine that allows us to use Razor inside of an MVC application to produce HTML.

Can you mix MVC and Razor pages?

You can add support for Pages to any ASP.NET Core MVC app by simply adding a Pages folder and adding Razor Pages files to this folder. Razor Pages use the folder structure as a convention for routing requests.

Is Cshtml a Razor?

cshtml files are razorpages or MVC views, they does not contain any C#-written client-side code. If you wan to do so, you must use JavaScript. However, a . razor file, also know as a Razor component, can have C# written in it and run on client's browser.

What is mvc3?

ASP.NET MVC 3 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the . NET Framework. It installs side-by-side with ASP.NET MVC 2, so get started using it today! Download the installer here.


1 Answers

I would think that there will be no official documentation on MSDN as yet due to the status of the Razor and MVC3. However check

  1. http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx
  2. Introducing “Razor” – a new view engine for ASP.NET
  3. ASP.NET MVC 3: New @model keyword in Razor
  4. ASP.NET MVC 3: Layouts with Razor
  5. ASP.NET MVC 3: Server-Side Comments with Razor
  6. ASP.NET MVC 3: Razor’s @: and syntax
  7. ASP.NET MVC 3: Implicit and Explicit code nuggets with Razor
  8. ASP.NET MVC 3: Layouts and Sections with Razor
  9. Razor Syntax Quick Reference - Phil Haack
  10. Introduction to ASP.NET Web Programming Using the Razor Syntax
  11. ASP.NET MVC 3 and the @helper syntax within Razor
  12. [MSDN Labs] ASP.NET MVC 3 Razor

Haacked also has a post as well, and provides link to other resources including ,Brad Wilson, Scott Gu and others.

New: http://www.asp.net/learn/whitepapers/mvc3-release-notes

like image 58
Ahmad Avatar answered Sep 23 '22 15:09

Ahmad