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.
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.
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.
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.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With