I'm trying to create an online test and I am not very familiar with the radiobuttonlist control.
I have 3 classes..cTest, cQuestion, cAnswer...within cTest I have a generic list of cQuestions, within cQuestion, a generic list of cAnswers.
So my thought was that I could use foreach to display the questions and answers...which worked...however, I'm not sure how to retrieve the selected answers when the user clicks submit. Any ideas?
Also, is this the best way to do things? I like the idea of using generic lists, however would it be better to use DataSets and bind them to the RadioButtonLists?
Any help appreciated
Thanks
I have 3 classes..cTest, cQuestion, cAnswer...within cTest I have a generic list of cQuestions, within cQuestion, a generic list of cAnswers.
So my thought was that I could use foreach to display the questions and answers...which worked...however, I'm not sure how to retrieve the selected answers when the user clicks submit. Any ideas?
Also, is this the best way to do things? I like the idea of using generic lists, however would it be better to use DataSets and bind them to the RadioButtonLists?
Any help appreciated
Thanks