I am developing Online Quiz Module.
So i have define 2 types of questions.
- Multiple Choice Single Option(Radio Button)
- Multiple Choice Multiple Option(Checkbox)
- Other Naswer(Textbox)
I have used Nested Repeater.The first repeater bind the Question.
And the child repeater bind the Options available for the Questions.
So what i want is i want to check the COndition,
Like if my QuestionType is MS(Multiple Choice Single Option) the i will bind the 4 options with Radio Buttons.
If its MM(Multiple Choice Multiple Option) then i will bind Options with Checkbox.
So how can i check such condition and code in the aspx file.?
This is a way to do it:
Output
ASPX
Code behind
Data component
This is just for testing, replace it with your data source
Model