dotsandcoms
asked on
validations in 3 tier application
Hello experts,
M developing the 3 tier application. I have one entry form and i want to put the validations for this entry form. Where do i put it? In BAL (Business access layer) or UI or somewhere else?
Please guide me.
Many thanks
M developing the 3 tier application. I have one entry form and i want to put the validations for this entry form. Where do i put it? In BAL (Business access layer) or UI or somewhere else?
Please guide me.
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
They should really be in both shouldn't they?
Totally agree about the user experience. In my own 3-tier app I validate in the form to ensure that dates/blank fields etc are all recognised immediately. Then I have further validation in the BAL to ensure that database logic is being followed. Some of this happens in stored procedures, others in the BAL layer itself.
Totally agree about the user experience. In my own 3-tier app I validate in the form to ensure that dates/blank fields etc are all recognised immediately. Then I have further validation in the BAL to ensure that database logic is being followed. Some of this happens in stored procedures, others in the BAL layer itself.
ASKER
excellent solution
Read these discussions too:-
http://msforums.ph/forums/p/54654/269489.aspx
http://asp.net.bigresource.com/Architecture-Data-Validation-in-a-3-tier-application--s9sQx80X2.html