- how do i bind the question answer multiple choice in a model and html.
- the above code not working properly.
- I want in tab1 4 questions with multiple choice and tab2 4 questions with multiple choice.
- here is the model:
- public List<QuestionsModel> Questions { get; set; }
- public List<AnswerModel> Answers { get; set; }
-
- public class QuestionsModel
- {
- public string QuestionText { get; set; }
- public string QuestionComment { get; set; }
-
- }
- public class AnswerModel
- {
- public string AnswerText { get; set; }
- public bool IsCorrect { get; set; }
- }
can ayone guide me how do i create a model and html.so that it will bind question and answer in a survey form respectively in mvc4