.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Where is the RazorViewEngine?

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net
 

Hello,

I use the following to have a Partial View folder:

((WebFormViewEngine)ViewEngines.Engines[0]).PartialViewLocationFormats = ((WebFormViewEngine)ViewEngines.Engines[0]).PartialViewLocationFormats.Concat(new[] { "~/Views/Partial/{0}.cshtml" }).ToArray();

But I need to have this work with Razor. I suppose I need to change the WebFormViewEngine by RazorViewEngine?

However, I can't find RazorViewEngine. I am using System.Web.Mvc and Microsoft.Web.Mvc.

Where is the engine for Razor?

Thanks,

Miguel





View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend