Input string was not in a correct format

Total Post:46

Points:324
 1778  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. Post:127

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

    Try this...

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

Answer