onedizzydevil
Programmer
I can not figure out whats "wrong" with this statement in ASP.NET, any ideas. Thanks
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim sql As New SqlConnection(ConfigurationSettings.AppSettings("sql")
sql.Open()
Dim com As New SqlCommand("INSERT INTO prod_engine (emailaddress, password, nameFirst, nameLast, birthday, sex, removed) VALUES ('" & txtEmailAddress.Text & "', '" & txtPassword.Text & "', '" & txtNameFirst.Text & "', '" & txtNameLast.Text & "', '" & txtBirthday.Text & "', '" & rdoSex.SelectedItem & "', 0)", sql)
com.ExecuteNonQuery()
sql.Close()
End Sub
ASP.NET Visual/Build Error Message:
Operator '&' is not defined for types 'String' and 'Sysemt.Web.UI.WebControls.ListItem'. Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim sql As New SqlConnection(ConfigurationSettings.AppSettings("sql")
sql.Open()
Dim com As New SqlCommand("INSERT INTO prod_engine (emailaddress, password, nameFirst, nameLast, birthday, sex, removed) VALUES ('" & txtEmailAddress.Text & "', '" & txtPassword.Text & "', '" & txtNameFirst.Text & "', '" & txtNameLast.Text & "', '" & txtBirthday.Text & "', '" & rdoSex.SelectedItem & "', 0)", sql)
com.ExecuteNonQuery()
sql.Close()
End Sub
ASP.NET Visual/Build Error Message:
Operator '&' is not defined for types 'String' and 'Sysemt.Web.UI.WebControls.ListItem'. Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."