hi,i'm creating an online exam system,where one question will be displayed along answers as radio buttons,from these options user will select one answer and clicks on the next button,so on clicking on the next button user should get the next question,and the answer selected will be stored in the database along with the userid and session id
Question and answer are stored in the database.
Any suggestion how to do this will be a great help.
Loading
Sam HobbsPosted Mar 31, 2011, 8:38 PM
rahulPosted Mar 31, 2011, 3:29 PM
Mahesh ChandPosted Mar 31, 2011, 9:51 AM
If you they are fixed, you can build a QuestionDisplay control that should have controls like Title, Radio buttons with possible answers. Then you build a class called QuestionDetails that should have the question details and all answers and then bind this class to the control.
Then you can add Next and Previous buttons and QuestionDisplay control to a page and get next and previous questions and update the data binding.