Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to hold online quiz results?

Status
Not open for further replies.

whatsthehampton

Programmer
Joined
Sep 13, 2005
Messages
121
Location
CA
Hi,

I am making an online multiple choice quiz app. for our students.
The choices are shown in a RadioButtonList and the questions are shown one at a time.

I'm trying to figure out the best way to hold the results from each question until the end of the quiz when the final results are shown.

I'm a bit confused with this one.

Many thanks,

j




 
How about holding them in the session?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
j - another option would be to past the answer set in a Querystring, e.g.,
Code:
...
...myquiz.aspx?1=Y&2=N&3=Y&4=N...&25=Y
...
I can't put my finger on it, but if the querystring is not too long (from my experience) I have a lot of confidence in it - IF session is lost the quiz is history -- though I agree with ca8msm that Session state would probably work 99.99% of the time so that too is just as valid.
 
Thank you both - 2 good ideas.

I thought about holding the scores in the session as this would seem sensible but what I really need to do is output the results at the end of the test.

The results should show all of the questions and whether or not each answer given was correct or not.

To do this I need to match each answer to the choices given and check if it was the correct answer.

I am thinking of an array, viewstate or maybe in the database but not sure??

Many thanks,

j



 
Personally, I would go the database route, this way your test scores and results are permanently stored for future review if needed.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top