We are building a ASP.net MVC 4 App where one of the modules for Questionnaire needs to build the view dynamically.
We are trying to solve 3 problems: -
1) Generate the view using data from the database. It could have answer types as Text, Radio button, Integer, Check box etc.
2) Have events against the generated controls (Ex: radio button needs to have a change event and needs to enable/disable items accordingly)
3) Validate the controls (possibly client side validation)
What is the best approach to do this?