lundi 15 juin 2015

Dynamic Controls in MVC based on database table entries

Hi I have a questionnaire table like :-

Q.no | Question | AnswerControlType

  1. | Name ? | 1
  2. | Gender | 3

Control Type Column entry would be like 1=> Textbox 2=> =Dropdown 3=> Radiobutton etc

Based on these values in the table I need to generate a dynamic View i.e depending on number of table entries we need to create corresponding controls onto a single view.

Please provide me with a template of Model , View and Controller

Further how do i get these control values on Form Post Action Method in the COntroller

Aucun commentaire:

Enregistrer un commentaire