Click here to Skip to main content
15,877,939 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
I am working a Online exam project(MCQ). There are 200 questions. I created 5 pages to store these questions. Each page has 40 questions. I'm using datalist to show the question. Which method will be good to store answer? Session ,cookie or i should insert it into db?
Posted
Comments
Richard C Bishop 19-Dec-13 15:23pm    
A database would be you best bet with that many questions. Just create a column that has a unique identifier and each question set(exam) can be referenced by that.
GAURAV KUMAR PATHAK 20-Dec-13 0:51am    
thank u got this .... :)
Richard C Bishop 20-Dec-13 9:53am    
You are welcome. Did you end up going the database route?
GAURAV KUMAR PATHAK 22-Dec-13 13:28pm    
yes sir I did that :)

1 solution

As Richard C Bishop had mentioned, the best way is to store questions and answers in a database.

Have a look at CP Knowledge Base. There are tons of examples:
Quiz[^]
Exam[^]
 
Share this answer
 
Comments
Richard C Bishop 19-Dec-13 15:42pm    
Thank you for the mentioning.

On a heavy push for that 100k?
Maciej Los 19-Dec-13 15:47pm    
No. It's not possible to achieve this year. ;)
Richard C Bishop 19-Dec-13 15:51pm    
Soon after the new year and you will though.
Maciej Los 19-Dec-13 15:55pm    
I'll strongly believe that ;)

Cheers!
Maciej Los 19-Dec-13 16:51pm    
Are you a hidden Santa Claus's helper?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900