INPUT STRING WAS NOT IN A CORRECT FORMAT

sandy taylor

Total Post:46

Points:324
Posted by  sandy taylor
 1408  View(s)
Ratings:
Rate this:

anyone can help me with this error:

Exception Details: System.FormatException: Input string was not in a correct format.

here's my code behind:

IDNO= Convert.ToInt32(drIdNo["Emp_ID"]);


  1. Uttam Misra

    Post:125

    Points:897
    Re: Input string was not in a correct format

    Try this...

    IDNO= Convert.ToInt32(drIdNo["Emp_ID"].ToString());

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!