How do i bind 4 tab in a loop.
- @foreach (var item in Model.ParentList)
- {
- class="tab-pane active" id="tab1">
- @foreach (var items in Model.ParentList)
- {
class="row">class="form-group">class="col-md-12">- @foreach (var ch in Model.ChildList)
- {
- if (items.QuestionId == ch.QuestionId)
- {
- string id = @ch.QuestionId + "_" + @ch.AnswerId;
class="icheck-list">- ="icheck-list" id="@ch.AnswerId">
- "@ch.QuestionId" onclick="handlesClick(this);" id="@id" type="radio">@ch.AnswerText
- }
- }
- }
- class="tab-pane" id="tab2">
- class="tab-pane" id="tab3">
- class="tab-pane" id="tab4">
the same code for tab2 and 3 and 4. in 4 there is a button.
i have 3 tab.(i.e. in first tag 4 questions,in next 2 tab 4 questions and 3 tab 2 questions)
Model.ParentList i got 10 questions. in Model.ChildList i got 50 answer as 10 questions and each quest having 5 choice.
i have using this themes.
http://keenthemes.com/preview/metronic/theme/admin_1/form_wizard.html
can anyone tell me??
Posted Apr 3, 2017, 8:30 AM
https://www.codeproject.com/Articles/486564/ASP-NET-Simple-Survey-Application
http://stackoverflow.com/a/21930525/728750
https://www.twilio.com/docs/tutorials/walkthrough/automated-survey/csharp/mvc
http://highoncoding.com/Articles/645_Creating_Multiple_Choice_Exam_Application_Using_ASP_NET_MVC_Framework.aspx
http://ngalatalla.blogspot.in/2011/11/building-dynamic-quiz-application-in.html
http://20fingers2brains.blogspot.com/2013/05/simple-dynamic-quiz-in-aspnet-mvc3-razor.html