int.Parse(..) is for converting a string containing digits into an integer. You are trying to perform the function int.Parse(..) on a string but then assign it to another string. That won't work because int.Parse(..) returns and integer. Read here about Int32.Parse (String) method.