Hi Everyone,
I was wondering if someone could help me. I am trying to get the value of a parameter from a stored procedure. I keep getting the error "Input string was not in a correct format.". It looks like it is in the correct format to me. Any suggestions?
Here's the code that gets the error.....
int
howManyProducts = Int32.Parse(comm.Parameters["@HowManyProducts"].Value.ToString());
Nipun TomarRank #90 · 23K reputationPosted Jul 24, 2008, 6:12 AM EDT
int returnValue = (
int)command.Parameters["ReturnValue"].Value;Jay62 reputationPosted Jul 24, 2008, 6:17 AM EDT
Perfect!! Thanks
Jay