Home > DeveloperSection > Forums > Input string was not in a correct format
sandy taylor
sandy taylor

Total Post:46

Posted on    November-01-2010 4:10 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 1383  View(s)
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"]);

Uttam Misra

Total Post:125

Posted on    November-01-2010 8:46 AM

Try this...

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

Don't want to miss updates? Please click the below button!

Follow MindStick