Click here to Skip to main content
16,015,697 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi all,

i want to create a project for online examination. I have put a radio button for answers. if i select the radiobutton1 checked=true, i press the submit button then same radiobutton have checked for next question. I want to disable this action. please help me..
Posted
Comments
DamithSL 24-May-14 1:51am    
how you load the next question? can you update the question with that code?

set

C#
RadioButtonID.Checked = false;  


ALL RADIOBUTTON checked false after press save button of an answer.. :)
 
Share this answer
 
in postback you need to save the current question information to database and then load the next question. when you load the next question you can reset all the controls to initial state. for example clear the text boxes if any, clear the selections of combo boxes etc.. clear the selections of checkboxes etc..
 
Share this answer
 
Comments
soft.rajasekaran 24-May-14 8:03am    
Hello sir thanks for your advice.

I have some doubt. In my web page i have put one more button called previous question, and store the every answer in database. if i choose previous question i want to fetch and checked the selected answers from database. i have solve this issue but the radio button still pointing to same radio button remaining questions(decremented order)... please understand my question and advise me please..

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