I get this error on the execute reader line. I am not referencing a SP so I have no idea why it keeps looking for one. PLease help.
Dim sSQL As String = sSQL = "SELECT [PostID] FROM [Posts] WHERE [ThreadID] = " & Request.QueryString("ThreadID"
Dim conn As SqlClient.SqlConnection = Session("SQLConn"
conn.Open()
Dim cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand(sSQL, conn)
cmd.CommandType = CommandType.Text
Dim dr As SqlClient.SqlDataReader = cmd.ExecuteReader(CommandBehavior.Default)
DLPostRepeater.DataSource = dr
DLPostRepeater.DataBind()
conn.Close()
Dim sSQL As String = sSQL = "SELECT [PostID] FROM [Posts] WHERE [ThreadID] = " & Request.QueryString("ThreadID"
Dim conn As SqlClient.SqlConnection = Session("SQLConn"
conn.Open()
Dim cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand(sSQL, conn)
cmd.CommandType = CommandType.Text
Dim dr As SqlClient.SqlDataReader = cmd.ExecuteReader(CommandBehavior.Default)
DLPostRepeater.DataSource = dr
DLPostRepeater.DataBind()
conn.Close()