Please use int.TryParse, then the try catch isn't required. int.TryParse is quicker then catching an exception.