Technologies : Asp.Net MVC3 / Razor
I am generating a dynamic form with a list of questions of types listed bellow :
- Text : Question with a textbox
- Multiplechoice : Question with a list of checkboxes
- Singlechoice : Question with a list of radiobuttons
All this works perfectly, when I post the form I use a modelbinder to match the model and the selected answers
BUT :
Now I want to customize the Multiple and Single choice :
- Multiplechoice : Question with a list of checkboxes with or without an additional Textbox associated to a checkbox
- Singlechoice : Question with a list of radiobuttons with or without an additional Textbox associated to a radiobutton
When I get the posted collection in my modelbinder, I dont find a way to associate a checkbox/radio and the corresponding Textbox answer
How can I handle this ?