How to reference the DisplayTemplates defined in an Area from main project?

Posted by Robert Mao on Stack Overflow See other posts from Stack Overflow or by Robert Mao
Published on 2010-06-11T22:30:06Z Indexed on 2010/06/11 22:32 UTC
Read the original article Hit count: 482

I defined a few display templates for classes and they work well when I put them in views/shared/DisplayTemplates. However after I move them into an area, looks like ASP.NET MVC won't look inside Area to find the templates.

How to reference the DisplayTemplates defined in an Area from main project? Is that a good practise?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc