Solved

Input string was not in a correct format. error

Posted on 2010-09-07
3
726 Views
Last Modified: 2013-11-25
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?
0
Comment
Question by:darren-w-
3 Comments
 
LVL 22

Expert Comment

by:Om Prakash
ID: 33618952
0
 
LVL 11

Expert Comment

by:tobzzz
ID: 33619840
Line 6 needs to break into line 7 so this:
"course.course_name, " & _"course.summary, " & _
becomes
"course.course_name, " & _
"course.summary, " & _
0
 
LVL 13

Accepted Solution

by:
darren-w- earned 0 total points
ID: 33625546
Hi,

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.

D
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP/VB email question 4 46
Hide cell in a table 2 27
Diminish Pop-up  in 3 seconds 7 45
Dinamic report to Crosstab query 9 33
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question