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.
精彩评论