online quiz using ASP dot NET

Posted by wacky_coder on Stack Overflow See other posts from Stack Overflow or by wacky_coder
Published on 2010-03-13T11:57:48Z Indexed on 2010/03/13 12:05 UTC
Read the original article Hit count: 622

Filed under:
|
|
|
|

Hii,

I need to develop an online quiz website that would be having MCQs. I would want to have one question appearing per page with a Numeric Pager so that the user can go back and forth.

I tried using the FormView for displaying the questions and RadioButtons. I created a class QANS that would hold the answer selected by the user for the questions that he did answer so that I can later sum up the total Score.

Now, the problem I'm facing is as below:

Let the user select a RadioButton, say R, on a PageIndex, say I, and then go to some other page, say K. When the user returns back to page I, none of the RadioButtons is selected. I tried adding code for setting the Checked property of the RadioButton true in the Page_Load(), but it didn't help. I also tried the same with the PageIndexChanged and PageIndexChanging event, but the RadioButton doesn't get checked.

The RadioButton that was selected for a particular question has been stored and I am able to print which one it was using Response.Write() but I'm not able to keep the RadioButton Checked. How shall this be done?

© Stack Overflow or respective owner

Related posts about radiobutton

Related posts about ASP.NET