Click here to Skip to main content
15,902,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone help?



when and where the error"input string is not in correct format" will exist?
Posted
Comments
Manoj K Bhoir 4-Dec-11 23:34pm    
Please provide code where the actual error comes.

This[^] should give you a fair idea.
Abio[^] would provide additional information as well.
 
Share this answer
 
Comments
Monjurul Habib 4-Dec-11 23:46pm    
nice links, my 5!
Abhinav S 4-Dec-11 23:48pm    
Thank you.
When you are tring to convert a string into a type which it cannot be converted to. For ex:

C#
string word = "Hi";
int result = Convert.ToInt32(word);


Or when you are simply assigning a value that the certain type does not support.
For ex:

C#
Label1.Text = "ABCDE";
double result = Label1.Text


Regards,
Eduard
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900