Creating simple quiz (non DB driven) and identifying correct choice

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im looking to write a series of single page HTML quizzes that will not be pulled from a DB or XML. These questions/html pages will be created by non technical people, and then wrapped in an .aspx page. The quiz would do a postback to itself and then be judged and scored. I need to be able to identify the correct/incorrect answers in the quiz without looking them up in a DB/XML file.
I was thinking about assigning a random number as the value (or Id) for each answer choice in the quiz and storing the correct random number in a session variable prior to displaying to the user and then comparing the users submission to this on the postback.
Has anyone done this kind of thing before and do you have any suggestions or other options?
Thank you in advance.

View the full article
 
Back
Top