Abhi:
I will try to make an example with ZIP files, sometime in the future.
Adrian:
As far as I recall, it should be possible to put view logic into the views using this approach. I will have to get back to you on this one, as soon as I get back home on friday.
Hi - Found this post potentially useful, but, my stumbling block is that I don't appear to be able to put View Logic inside my View (as stored in the DB), ie. <%=DateTime.Now%> renders as <%=DateTime.Now%> and doen't show the current datetime.
Is this possible using this approach - for the record, I am using the current beta MVC 2.
Apert from my method of storage, all my code is identical to that provided in this post.
Thanks for the post; a very thoughtful idea - storing MVC views in the DB. Although I found the idea to read views from the zip file for dynamic themes to be a more practical implementation. But yeah this could be a good beginning for creating a CMS based on ASP.NET MVC on the lines of gosted/unghosted pages in MS Sharepoint.
Khalid, what were the issues you experienced? I am curious as I have done this on several occasions and been happy but may not have run into all the potential issues. One must be careful to use caching appropriately for decent performance since pages change rarely and thus the hits to the database should be rare as well.
You most definitely should have used my implementation of a CSV parser, available at http://www.heikniemi.net/hardcoded/2004/10/csv-parser-for-c/
(oh, and it's also included inside the basic tool library at work - the fact that I'm telling you this here reminds me that the internal library documentation definitely needs some polish)
Saw on facebook you are "fan of Touch Diamond 2" some months ago. I bought also one (birthday present for myself), then sent back to Amazon after 1 week. Today I am a happy and satisfied iPhone user .