Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

i want to focus on proper textbox after data validation in BLL. which is the correct way?

1- returning different value and decide in presentation layer(in this way you need evaluate returned value again - once in BLL and then in UI)

2- set focus on proper textbox from BLL.

thank you
Posted
Comments
aarif moh shaikh 12-Sep-15 8:22am    
not Clarifying question.
[no name] 12-Sep-15 10:10am    
yep realy not clear as http://www.codeproject.com/script/Membership/View.aspx?mid=9398118[^] mentioned.

And no! On a first glance: Presentation layer has not to decide what is valid or not by itself... PL can do it, but than only with the help of the data layer
Sinisa Hajnal 14-Sep-15 3:54am    
Your business layer should decide if the value is correct or not and return the value. Presentation layer should just show the value...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900