Hello,
I am getting the error "Specified cast is not valid" on the following line of code and i cannot see why:
int _totalRecords = (int) myCommand.Parameters["@TotalRecords"].Value;
@TotalRecords is a an output from a stored procedure from a sql db. It is an int.
Any ideas?
mtl77.