form input parse string to number code example Example: C# convert string to int int x = Convert.ToInt32("1234");