Thanks in Advance
Radio Buttons in mVC 4
Hi am super new to asp .net in my project i have a challenge that is in my project i have to generate a radio buttons in mvc 4 . here i have a fields like this Text Area for Questions and 4 radio buttons for options of that particular question. but here am not getting how to achieve this so i request you to please help me in this to achieve this.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Aug 4, 2013, 12:21 AM EDT
You should create the radio button groups based for each question.
foreach (var question in questions { @Html.RadioButtonFor(m => m.SelectedChoice, @question.id + "_" + @question.name)Something very similar to the above one.