I have been developing a quiz application in asp.net mvc. In this quiz user is give a list of topic to take quiz. On click of one of the topic the user is taken to new page. In the get part action of this page i have taken some parameters, generated questions for the quiz, register quiz for the user (save in db)and save the generated questions in db.
Now the problem is:
User see the page, if user hits the "submit" button after selecting the answer than it is ok but If user refresh the page. Then the get action is called again and new set of questions are generated and new quiz is registered to user.
How can i avoid this?
Is there any way to detect that the get action is called the second time or to detect page refresh in as.net mvc.
If you could suggest design changes that it is ok too? i just need to make sure if user refresh the page the question need not be generated again and new quiz should not be registered to user.
View Complete Post