Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I save the answers of user in database?

Possible methods according to me
1st way insert answer after each attempted question
2nd way Save answers in Cookies

which method is feasible?


And what will be database Design to save answers

ID of student and answers

And what i Use to check whether question is answered or not Session or Flagging from Database values?
Posted
Updated 6-Sep-13 19:58pm
v3
Comments
Dholakiya Ankit 7-Sep-13 2:06am    
what control you are using for that one?

1 solution

Use a database if you want long term storage as cookies can be deleted

Assuming that each question is on a separate page, just add to the database on the submit event. If its one big page of questions, save it to the database once all questions are done and the user submits the answers.
 
Share this answer
 

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