سؤال

What role ViewEngineResult FindView method plays in asp.net mvc, can we change the view location in this method. I can understand VirtualPathProvider but have some confusion about FindView method.

Help will be appreciated.

Cheers

هل كانت مفيدة؟

المحلول

The FindView method has the role of locating the corresponding view given its name. You can write a custom view engine if you want to change the location where ASP.NET MVC is looking for views. Here's an article which provides an example of how to achieve this.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top