asp.net mvc3 razor documentation? [closed]

2019-01-29 17:27发布

问题:

Is there any documentation on how to use Razor view engine using asp.net mvc3? or any other resources?

Trying to find it in google and msdn with no luck so far.

回答1:

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



回答2:

Until documentation is out specific to MVC3, you might want to start with the Razor docs available for the Web Matrix Beta 3 release. There is good information available on the syntax and structure of Razor.

Online: introduction-to-asp-net-web-programming-using-the-razor-syntax

PDF: ASPNETWebPagesWithRazorSyntax-Book-Beta3.pdf



回答3:

pls try the link :

http://www.microsoft.com/downloads/info.aspx?na=41&srcfamilyid=300314da-dedd-4540-a236-a0de0a5a534d&srcdisplaylang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fC%2f9%2f2%2fC9288B42-5C25-474D-A51A-1BA3749C4DBF%2fASPNETWebPagesWithRazorSyntax-Book.pdf

http://www.microsoft.com/download/en/details.aspx?id=15979