I want to download and install razor view engine for ASP.Net MVC 2. From where i can download and install?
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
- TextBoxFor decimal
- Install ASP.NET 5.0 version of System.ServiceModel
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
- entity type has no key defined - Code first
Razor is for MVC 3
Utilizing Matthew Abbott's and My Razor View Engine from Codeplex. You could do the following. It doesn't support models or layout pages but it will get you in the right direction if you choose to go this route. Frankly though, I would just update to MVC 3 when the time is ready. This code was based on my blog post at http://buildstarted.com/2010/11/22/making-your-own-viewengine-with-markdown/
You'll have to add the following line to your global.asax:
unless you want both engines in which case just remove
Clear()
Possibly a bit outdated but you should maybe take a look at this post.
http://stefan.rusek.org/Posts/Using-Razor-with-ASP-NET-MVC-in-Four-Easy-Steps/26/
Razor is capable of running standalone so it is entirely possible to provide the wiring yourself. Whether or not you need to be using .NET4 or not I am not 100% sure of. On another note MVC3 is at RC status and has a Go-Live license which emans you could technically start using now and when the RTM hits (soon) just upgrade.
The best way to get an MVC Razor engine, and learn how to use it is from Scot Gu! The Guru of the whole Razor project. His blog post http://weblogs.asp.net/scottgu/archive/2010/10/22/asp-net-mvc-3-layouts.aspx is very easy to follow and teaches you how to manage the scaffolding process from the Package Manager Consel in VS.