I have 4 radio buttons to choose as an answer and in databse a table named quser with the fields :
qid,uans,result.
I am thinking to do it in this way:
When the user clicks on his answer i.e. radiobutton then it should get stored in the uans field.
How to do this?
I am the beginner so don't have much idea just tried it in this way:
con.Open()
cmd = New SqlCommand("insert into quser (uans) values('" + RadioButton1.Checked + "'||'" + RadioButton2.Checked + "'||'" + RadioButton3.Checked + "'||'" + RadioButton4.Checked + "' )", con)
cmd.ExecuteNonQuery()
And am also confused whether to use individual radiobuttons or directly radiolist?
Not getting any further reply on this link
http://forums.asp.net/t/1790367.aspx/1?How+to+add+this+values+from+radiobutton+
So, I am reposting it again.
I am interested in learning this and stucked up with this ..can somebody help me?
IAmateur
Member
96 Points
388 Posts
What is the correct syntax ?
Apr 11, 2012 05:52 AM|LINK
I have 4 radio buttons to choose as an answer and in databse a table named quser with the fields :
qid,uans,result.
I am thinking to do it in this way:
When the user clicks on his answer i.e. radiobutton then it should get stored in the uans field.
How to do this?
I am the beginner so don't have much idea just tried it in this way:
con.Open()
cmd = New SqlCommand("insert into quser (uans) values('" + RadioButton1.Checked + "'||'" + RadioButton2.Checked + "'||'" + RadioButton3.Checked + "'||'" + RadioButton4.Checked + "' )", con)
cmd.ExecuteNonQuery()
And am also confused whether to use individual radiobuttons or directly radiolist?
Not getting any further reply on this link
http://forums.asp.net/t/1790367.aspx/1?How+to+add+this+values+from+radiobutton+
So, I am reposting it again.
I am interested in learning this and stucked up with this ..can somebody help me?
Time to go Long way...