While i am trying to convert a value to Int32, I get an error format exception, meaning the value is not in the proper format. I think I am converting a value in right forma
string str = "123"; int i = 0; if (int.TryParse(str, out i)) { //do your logic here }
Share your code here, you might missed something