Saturday, April 25, 2009

VirtualPathProvider example

Hi there,

did you ever wonder if you can retrieve ASP.NET MVC views from another storage than a file on disk? For example from the database? This is where the VirtualPathProvider comes into play!

VirtualPathProviderExample.zip

This simplistic example shows how to implement retrieval of data from a predefined string (ugly long string but that's not the point here). You can use some other backing store (database, ftp or even web service!) to get the content.

Enjoy!

3 comments:

Dmytrii said...

Nice one. Thanks for publishing this.

Unknown said...

Do you have an updated download link?

Matthias Hryniszak said...

All downloads will be back online by tomorrow evening CET.