I have code that I've used in 3.5 and works. 4.0 for some reason doesn't work.
I placed the information below.
Dim TotNumRows As New SqlParameter("@TotNumRows", SqlDbType.Int)
TotNumRows.Value = Nothing
TotNumRows.Direction = ParameterDirection.Output
DataAdapter.SelectCommand.Parameters("@TotNumRows").Value = Nothing
I will call a public Sub from here and it bombs with the Input String was not in correct format.
Here is the sub I call
Public Sub Navigation(ByVal totalRows As Integer)