I had already done the connection with database
but when I increase the value in the radio button list it doesn't increase the...........
means
When question is changed it's option also changed
but in back hand it value is not come of that option it display first question option,,,,,
So plz give me answer...............
here is code......
Label2.Text = Convert.ToString(ds.Tables(0).Rows(Session("point"))(1))
RadioButtonList1.Items(0).Text = (ds.Tables(0).Rows(Session("point"))(2))
RadioButtonList1.Items(1).Text = Convert.ToString(ds.Tables(0).Rows(Session("point"))(3))
RadioButtonList1.Items(2).Text = Convert.ToString(ds.Tables(0).Rows(Session("point"))(4))
RadioButtonList1.Items(3).Text = Convert.ToString(ds.Tables(0).Rows(Session("point"))(5))
If CInt(Label4.Text) > 0 Then
str = RadioButtonList1.SelectedValue
con.Open()
cmd = New OleDbCommand("select * from unixquedb where qno=" & CInt(Label4.Text) & " and ans ='" & str & "' ", con)
dr1 = cmd.ExecuteReader()
If dr1.Read = True Then
' "select * from unixquedb where ans ='" & str & "'" Then
marks = +1
End If
End If