开发者

MVC3 partial view locations

开发者 https://www.devze.com 2023-04-11 02:41 出处:网络
The view structure in MVC3. It is designed with ev开发者_高级运维erything under \"shared\" to be usable to other folders? What if I want to access views under folders other than \"shared\"? You can cr

The view structure in MVC3. It is designed with ev开发者_高级运维erything under "shared" to be usable to other folders? What if I want to access views under folders other than "shared"?


You can create your own view engine that inherits from the default but looks in some additional locations to find the fiew

OR

You can reference the view using a relative URL.

0

精彩评论

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

关注公众号