Input string was not in a correct format. error

I'm getting this error:

Exception Details: System.FormatException: Input string was not in a correct format.

 vbssript code
The source looks like this <snippet>:

Dim CourseQuery
Dim CourseQuery_numRows
CourseQuery = Server.CreateObject("ADODB.Recordset")
CourseQuery.ActiveConnection = MM_connLearnDirectDB_STRING
CourseQuery.Source = "SELECT course.course_id, " & _
"course.course_name, " & _"course.summary, " & _
"provider.provider_id," & _

Open in new window

I'm converting the page over from asp to aspx , anyone know whats causing it?
LVL 13
Who is Participating?
darren-w-Connect With a Mentor Author Commented:

Tobzz, the snippet was a little wrong, the syntax is correct, I will give up on converting the form over from asp to aspx for now, reverted back to the previous version.

Om PrakashCommented:
Line 6 needs to break into line 7 so this:
"course.course_name, " & _"course.summary, " & _
"course.course_name, " & _
"course.summary, " & _
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.