Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRandomize Data of Groupboxes Pin
ASPnoob5-Oct-12 23:38
ASPnoob5-Oct-12 23:38 
Hi All, I want to create an exam program consisting of questions and bunch of groupboxes each containing several radio buttons. Each question has a groupbox below it. The questions and their corresponding possible answers are stored on a database which will be bound to the the radio buttons at runtime. To answer an exam question, test takers will click on the radio button next to the correct answer. I would like to give each test taker a different test by rearrange the test questions by randomly changing the order of the questions and randomly changing the order of the possible answers. Randomizing the order of the questions is pretty straight forward using the Random Class to randomly display the questions but I don't know how to randomly bind data from the database to the radio buttons in the groupboxes. Please explain how this can be done or point me to a site where there's a tutorial on doing this if you know of one. Thanks in advance.

modified 6-Oct-12 11:42am.

AnswerRe: Randomize Data of Groupboxes Pin
Rockstar_7-Oct-12 20:10
professionalRockstar_7-Oct-12 20:10 
AnswerRe: Randomize Data of Groupboxes Pin
Rockstar_7-Oct-12 20:46
professionalRockstar_7-Oct-12 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.