input string was not in acorrect format
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.....
customer.id=convert.toint32(rd[0].tostring)
where rd is a sql dataReader
read from the stored procedure