Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
N-tier question
Message
From
10/01/2003 11:49:53
 
 
To
10/01/2003 09:28:17
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00740247
Message ID:
00740342
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform