Newbie here, whenever I dont input/input letter then click next button I get this error[System.FormatException: 'Input string was not in a correct format.' ] I dont know what to do. I just follow the instruction

Im expecting whenever I clicked Nextbutton, I dont get that error.
int. Consider usingint.TryParse()instead ofConvert.ToInt32().if(!string.IsNullOrEmpty(txtStudentNo.Text))before converting it to a number.