Last post Dec 31, 2010 02:28 PM by shabirhakim1
Dec 20, 2010 12:52 AM|urs_nadal|LINK
i am making a quiz system in asp.net using C# vs 2008.having one equestion per page,with previous and back button.each question have four options with only one correct answer.The options are in a radio button list.I have a database which has two columns
For viewing previous answer the user can click on previous button,so that he can see his previous marked answer and if feel he had marked the wrong option then he can mark the other one.
Though i am able to display the QuestionID and the CorrectAnswer in a grid view in the result page.
Thanking in advance
Dec 27, 2010 02:58 AM|shabirhakim1|LINK
this is behiviour of http or web application,so to keep track of your data persistance you need to use sessions or querystring. how?
Just declare session varaiable for each page of your application to keep selected answer as checked on page load only like
then assign session variable to mantain this through out application like below
Dec 30, 2010 02:03 PM|urs_nadal|LINK
Thanks for ur valuable time.I Had tried it.But i am getting some errors like-"The name 'selected' does not exist in the current context".
And--"Identifier expected; 'checked' is a keyword"
As I am a rookie so i am not able to fully understand what u r saying.So can u please explain it a little bit.
Dec 31, 2010 02:28 PM|shabirhakim1|LINK
Just go through this source code
if it wouldn't help you,let me know