B
BrianDH
This is new to me. I am trying to call a SP (MS SQL) and pass different data
types. I know in SQL you handel these data types diffent in your string
Public Shared Function GetGridDataSet(ByVal val1 As Integer, ByVal val2 As
String) As DataSet
Dim UserData As DataSet
Dim myConnection As SqlConnection
Dim myCommand As SqlDataAdapter
myConnection = New SqlConnection(ConnectionString)
myCommand = New SqlDataAdapter("Exec ap_ExpressOnLineCheckoutForASP
'" + val1 + "','" + val2 + "'", myConnection)
UserData = New DataSet
myCommand.Fill(UserData, "DealConfirm")
myConnection.Close()
Return UserData
End Function
I am getting this error:" Input string was not in a correct format."
Can someone point me to a link that can help me get my sting right (Date,
Int, Dbl,)
Thanks
types. I know in SQL you handel these data types diffent in your string
Public Shared Function GetGridDataSet(ByVal val1 As Integer, ByVal val2 As
String) As DataSet
Dim UserData As DataSet
Dim myConnection As SqlConnection
Dim myCommand As SqlDataAdapter
myConnection = New SqlConnection(ConnectionString)
myCommand = New SqlDataAdapter("Exec ap_ExpressOnLineCheckoutForASP
'" + val1 + "','" + val2 + "'", myConnection)
UserData = New DataSet
myCommand.Fill(UserData, "DealConfirm")
myConnection.Close()
Return UserData
End Function
I am getting this error:" Input string was not in a correct format."
Can someone point me to a link that can help me get my sting right (Date,
Int, Dbl,)
Thanks