Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to make business layer in asp.net
Posted
Updated 7-Sep-11 21:30pm
v2
Comments
[no name] 8-Sep-11 2:52am    
What exactly you want
business Layer is just a bunch of classes where you can define your methods and properties.
raj_sagoo 8-Sep-11 3:10am    
i want to to create a bussiness layer in which i am calling the functions of paypal transaction,basically my purpose is to use in many project,thus creating a business layer.

This book might help you,

Professional ASP.NET Design Patterns
Scott Millett

:)
 
Share this answer
 
I guess you are learning 3-tier architecture in asp.net c#. Refer these:

http://www.dotnetfunda.com/articles/article71.aspx[^]

3-tier architecture in C#[^]

hope it helps :)
 
Share this answer
 
Add Class Library as BL and call it from ASP.Net.

http://msdn.microsoft.com/en-us/library/aa581779.aspx[^]
 
Share this answer
 
in asp.net there 3 layers
business layer is one of that,it's nothing but class where your logic comes.
they are BAL(Business Access Layer) ,BOL(Business Object Layers) create class starts with bol or bal this will automatic get place in APP code


regards
vipul
 
Share this answer
 
create class and name it as you want, by it will be " BOLpage.cs"

then define every variable used in your program as
C#
private vST;


then create property procedures ( which will get and set the values) as
C#
public String ST
{
      get
      {
         return vST;
      }
      set
      {
          vST=value;
       }
}


and define functions for your programs as
C#
public void fun1(class_name objectOf_class_name)
{

}


Edit: Code formatted.
 
Share this answer
 
v3
Hi raj_saboo,
go through the following video link
Click me[^]
 
Share this answer
 
v2
C#
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Business_Layer
/// </summary>
public class Business_Layer
{
	public Business_Layer()
	{
		//
		// TODO: Add constructor logic here
		//
	}
} 


Edit: Code Formatted.
 
Share this answer
 
v2

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