I am building an ASP.Net MVC 2 application for a client and it requires the ability for user to define views. On this website it shows how to do this – http://www.umbraworks.net/bl0g/rebuildall/2009/11/17/ASP_NET_MVC_and_virtual_views , but I ran into a few comments there and elsewhere that this was a bad idea. What would be the best way to accomplish allowing users to define the whole page? Also, why is the database a bad idea? Thanks.
Wade
Well if you can write the application using MVC 3 Beta instead of MVC 2 you can use this technique:
http://buildstarted.com/2010/11/02/razor-without-mvc-part-ii/
You can store your “View” as string in the database then just pull it out and pass it to the parse engine and you are all set.
It works great.