I tried the examples in Chapter 4, and added a text box called Phone number on my EditPage with the following business rules:
Phone number is required and must be digits.
So in the LoadObjectFromScreen method I added:
baseEo.PhoneNumber = Convert.ToInt32(txtPhoneNumber.Text);
But if there is blank in the text field, then there is a run time error on it "Input string was not in a correct format.". Should I add some validation or validation controls before that method, or there are some better solutions there