开发者

Load views from a cloud service using a virtual path provider?

Is it possible to use a virtual path provider to load views开发者_StackOverflow中文版 from a cloud service? For example if I have a site admin ui located under http://www.example.com/ui, I want to load the views from the cloud.


That's possible by writing a custom virtual path provider. So all you need to do in the overriden Open method is to fetch the contents of the view from the could service and return it as stream. For fetching resources over HTTP you could use the WebClient class.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜