Click here to Skip to main content
13,298,551 members (52,667 online)


QuestionRandomize Data of Groupboxes Pin
ASPnoob6-Oct-12 0:38
memberASPnoob6-Oct-12 0: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
VijayChauhan1237-Oct-12 21:10
memberVijayChauhan1237-Oct-12 21:10 
AnswerRe: Randomize Data of Groupboxes Pin
VijayChauhan1237-Oct-12 21:46
memberVijayChauhan1237-Oct-12 21: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.

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 15 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid