Dynamically Generating Forms ASP.net

Chris wrote

Pascal  wants to dynamically generate forms. I did some code for my own use (ie. "no, I ain't showing you it") and while it works and I can point it at any database table and just start editing, I have abandoned it. Just too fudged and kludged to put any faith in really.

I may have another go and rather develop something that works at runtime, outputs source files like Als DAL Generator, that way the mess is kept in the tool rather than the user experience.

Chris, to comment that, I just say that the easy part on Forms generations is the database and associated stored procedures.

I was able to create a solid SQL database with all relationships to store the definitions of my Forms.

I did this for an earlier project with ASP and SQL 7. The purpose was to generate Forms for a mortgage application, something like 15 pages of questions.

For the validation system, I used an excellent Javascript library (I think it was Matt's Script, can't found out anymore the link), and my own Form builder tool.

Maybe I should go back to this and see if I can upgrade this to VB.Net.

If it works I would like to do that as an open source project.


No Comments