Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
N-tier question
Message
De
10/01/2003 11:49:53
 
 
À
10/01/2003 09:28:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00740247
Message ID:
00740342
Vues:
19
>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
>Kev


I 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.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform