M
Michael Rodriguez
If you're using a standard 3-tiered architecture, i.e. Data Layer-> Business
Layer->Presentation Layer, where is the recommended place to put data
validations? Specifically, data validations such as "Please enter a name."
It seems like the best place to put them, from the programmer's point of
view, is in the business layer. That way the same validations work for
either Winforms or Webforms. Also, if I redo my interface later, I don't
have to redo the work.
However, the best place to put them as far as my users are concerned is
probably the presentation layer. That way I can not only say "Please enter
a name", but I can set the focus to the name control and possibly even turn
on an error provider (which seem hokey at best).
Thoughts?
Mike Rodriguez
Layer->Presentation Layer, where is the recommended place to put data
validations? Specifically, data validations such as "Please enter a name."
It seems like the best place to put them, from the programmer's point of
view, is in the business layer. That way the same validations work for
either Winforms or Webforms. Also, if I redo my interface later, I don't
have to redo the work.
However, the best place to put them as far as my users are concerned is
probably the presentation layer. That way I can not only say "Please enter
a name", but I can set the focus to the name control and possibly even turn
on an error provider (which seem hokey at best).
Thoughts?
Mike Rodriguez