>Hi
>
>In a 3-tier environment, if checking for the presence of empty fields, when a save is called, should the middle-tier validate this, or the presentation-tier?
>
>Thanks
>KevI do it in both. We need to ensure data quality, right? Consider the case of a web browser in your example, where everything generally requires a round trip. The user forgets to fill a must-fill field, and presses Submit. Then a round trip to server happens and a long wait, just to be told that you forgot to fill it. These kinds of simple validations I do at the client itself, with some simple JavaScript code to catch the most obvious mistakes.