I am attempting on developing my first very small application using asp.net. I seem to be getting an error on my command class that says declaration expected. This could very well be a very easy solution. below is a copy past of all of my code please advise.
Imports System.Data.SqlClient
Imports System.Data
Partial Class _Default
Inherits System.Web.UI.Page
Const ConStr As String = "Data Source=solon2;Initial Catalog=surveyresponce;Persist Security Info=True;User ID=survey;Password=survey1"
Dim Conn As New SqlConnection(ConStr)
Const InsCom As String = "INSERT INTO 8/8/07webinarsurvey VALUES (Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,Q10)"
Dim Command As New SqlCommand(InsCom, Conn)
Command.connection.open()
Command.ExecuteNonquery()
Command.connection.close()
End Class
the command,executeNonQueery() command.connection lines are the ones that are erroring. PLease advise.