Jay

Jay

  • NA
  • 48
  • 0

Input string was not in a correct format.

Jul 24 2008 9:52 AM

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());


Answers (2)