简体   繁体   中英

Asp.net mvc 3 load razor views from a physical path

I am tring to load razor views from a physical path that is outside of my webapp. Is it that possible for you?

Thanks

Marco

You could write a custom virtual path provider. Here's a nice article illustrating how to achieve this (it loads views stored in a database but it could be easily adapted to load them from any physical location).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM