.NET MVC3 HtmlHelper EditorFor access from different area

In a .NET MVC3 Razor webapplication, how is it possible to use an EditorTemplate which is in another Area? (using the HtmlHelperĀ“s EditorFor method)


Can you move the editor template out of the area? If you put it in the root /Views/Shared/EditorTemplates, you can then access it from any area.

If I am interpreting "another Area" correctly: You can always directly reference objects by using explicit targeting.

MyApplication.Helpers.MyEditorTemplate myTemplate; 

Need Your Help

Can the iPhone screen can function as a weight?


I wonder if there is an option to use the iphone screen (via app of course) as a weight?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.