Posted: 2/25/2011
How to write BLL code for Login Page. Could you explain with Example....
srinu g said: How to write BLL code for Login Page. Could you explain with Example....
Hello srinu and Welcome to CodeASP.NET Community.
Your question is quite general, so the way you will design your logic sometimes depends of how the architecutre of your application is set.
Note: I suppose with BLL you refer to Business Logic Layer, if not something else... right?
Mainly you have Data Layer, Business Layer and Presentation Layer.When separating logic for Login andĀ Membership system, you can separate the logic so that all business operations, such as for example:
etc... can be defined in Business Layer.
In Data Layer you may have methods that work close with databases for making the CRUD operations.
Finally in the Presentation layer or the ASP.NET Website, you can reference the BLL and call for example the Authentication(string user, string pass) which will return true/false.
If you use FormsAuthenticationĀ you don't really need to separate it to Business Layer since the FormsAuthentication is part of System.Web.Security library and by referencing it in your using directives, you have available all methods for implementing login system / membership provider.
These are the basics and I hope I gave you some good points that might help you go further in this.
If you have anything else, feel free to ask.
Note: If you are more specific and detailed in your questions, the answers will be always more accurate ;).
Hope this helps.
Regards,Hajan