开发者

MVC3 partial view locations

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜