this is my View : <pre><pre><pre lang="HTML">
@using (Html.BeginForm()) { for (int i = 0; i < Model.Questions.Count(); i++) { @Html.TextBoxFor(model => model.Questions[i].QuestionText, new { placeholder = "Text" }) <table> @for (int j = 0; j < Model.Questions[i].Answers.Count(); j++) { <!-- Answer block --> <tr> <td>@Html.RadioButtonFor(model => model.Questions[i].Answers[j].IsCorrect)</td> <td>@Html.TextBoxFor(model => model.Questions[i].Answers[j].AnswerText)</td> </tr> } </table> @Html.TextBoxFor(model => model.Questions[i].QuestionComment) <!-- Question block END --> } <input type="submit"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)