hie people, could anyone tell me what's wrong with following code:
Dim cmd As New SqlCommand("SELECT * FROM Security_Ques WHERE Username = " + txtUsername.Text + " and Ques_Index = " + cmbSecurity_Ques.SelectedIndex + " and Answer = " + txtSecurity_Answer.Text + "", con)
because it is raising an exception like this:
Conversion from string "SELECT * FROM Security_Ques WHER" to type 'Double' is not valid.
Thanks.