开发者

asp.net mvc ViewEngineResult FindView and virtual path provider

开发者 https://www.devze.com 2023-04-06 03:28 出处:网络
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. 开发

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号