I am working in a project on online examination systm in which i have binded radiobuttons in formview and value in radiobuttons comes from database where i have stored options for particular question...
Now i want to know how to save value of radiobutton option that was choosen by user and how to move on next question when user clicks on next button..
Plz if anyone of you can help...
Hi,
To Save selected radio button option in database check this,
http://www.c-sharpcorner.com/blogs/8328/insert-radiobutton-values-into-database.aspx
I assume that your questions are coming from database, same kind of scenario is discussed here,
You can use repeater control to show questions and options one at a time.
Hope this helps!
on button click event, u can read value from radiobuttonlist
string strSelectRadio = ((RadioButtonList) FormView1.FindControl("radio_buttonlist_id")).SelectedValue;
then, store value of strSelectedRadio in database and again fetch next question from database and rebind formview
hope this helps...
沒有留言:
張貼留言