How will you register a custom view engine where in the Areas will not be affected?

Posted by Fleents on Stack Overflow See other posts from Stack Overflow or by Fleents
Published on 2010-06-15T07:29:00Z Indexed on 2010/06/15 7:32 UTC
Read the original article Hit count: 217

Filed under:
|
|
|
|
I made a custom view engine for my application.
 ~/Themes/Default/Views.. 
And I have an Area called Admin.
 Area/Admin/Views.. 

I register my custom view engine in Global.asax :

RegisterViewEngines(ViewEngines.Engines);
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);


When I browsed my admin site, it cant find the views..
I know its because of my custom view engine..
But how can you register new custom view engine 
without affecting the view engine of areas?

© Stack Overflow or respective owner

Related posts about mvc

Related posts about custom