Input string was not in a correct format

Total Post:46

Points:324

 2000  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. Re: Input string was not in a correct format

    Try this...

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

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.