开发者

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

开发者 https://www.devze.com 2023-02-25 06:43 出处:网络
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 loa

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

精彩评论

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