Generating ASP.NET MVC View Controls According to Xml Configurations

added by gilf
4/23/2012 9:44:30 AM

1 Kicks, 383 Views

Last week I was consulting about ASP.NET MVC at a customer. One of the customer project requirements is to generate forms according to Xml configuration files. In this post I’ll offer an end-to-end solution to this requirement. This solution can be rafactored to use databases or any other data sources in order to achieve the same results.


2 comments

dpeterson
4/23/2012 9:44:40 AM
Novel solution, I like it. Seems like you could easily extend this concept to read from a database, or even further, extend it to read the metadata of a database table and generate the form based on that :-)

gilf
4/24/2012 1:24:21 AM
Thanks dpeterson!