Loading ...

BLL Code... in vs.net

Who is online?  0 guests and 0 members
home  »  forums   »  codeasp.net community   »  open forum   » BLL Code... in vs.net

BLL Code... in vs.net

Posts under the topic: BLL Code... in vs.net

Posted: 2/25/2011

Lurker 5  points  Lurker
  • Joined on: 2/25/2011
  • Posts: 1

How to write BLL code for Login Page. Could you explain with Example....


Posted: 2/25/2011

Professional 8505  points  Professional
  • Joined on: 5/3/2010
  • Posts: 391
  Answered

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:

  • GetUserInfo
  • GetProfile
  • GetUserRole
  • Authenticate

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


Page 1 of 1 (2 items)