hii
i am developing a web application using asp.net with c#..
there is login & registration form.
i want to make use of 3-tier architecture for them including cookie,session management,stored procedures,etc
how to manage all- where to write code for them in classes,how to call them from aspx page?
thanks in advance..
Loading
Roei BarPosted Oct 2, 2009, 4:56 PM
you will need todo the following, build all UI in the ASP.NET
all Business Logic + Login is on the WebService
while DB is only there to hold the information, meaning that intire logic for who is allowed todo what and dataRetrival is on the WebService
you go to DB get information, manipulate the Data and send it to the ASP.NET client for display with not logic for manipulation on data, only success or Failure.
hope this is enough, cause this is not an issue to talk about on 1 leg
good luck, you may contact me if you need help in design
kritikaPosted Oct 4, 2009, 2:20 PM
have to write the session,cookie management code on code behind file of that aspx page? or on either of business or data logic layer class?
i will be very thankful to you by getting help from your side..
will you give me the example showing the state management?
thank you
Master BillaPosted Oct 3, 2009, 1:41 AM
Architecture is an important feature and the very first step in the development of an application. n-Tier is the term used for multiple tier or multiple layers. n-Tier Architecture splits the solution process into different projects based on the business requirements. The main advantage of using n-Tier is that the complexity associated with the business and the process is reduced and it is easy to work with. The elements of performance, scalability and future development issues need to be considered when deciding on the architecture of the application depending on the priorities required.
The n-Tier application has three tiers or layers - they are called the presentation tier, the business tier and the data tier. Each layer interacts with the layer directly below, and has a specific function to perform. Presentation Layer is responsible for displaying user interface to either programmer or end user. Programmer uses this layer for designing purpose and to get the data back and forth. In ASP.NET it includes ASPX pages, user controls, server controls and sometimes security related classes and objects.
The Business layer works as a mediator to transfer the data from the presentation layer. In the three tier architecture the data access layer is not made to interact with the presentation layer. The architecture in ASP.NET includes using SqlClient or OleDb objects to retrieve, update and delete data from SQL Server or Access databases and passing the data retrieved to the presentation layer in a DataReader or DataSet object, or a custom collection object. The Data layer gets the data from the business layer and sends it to the database or vice versa. This layer is further divided into two sub layers Business Logic Layer (BLL) and Data Access Layer (DAL). DAL is responsible for accessing data and forwarding it to BLL. In ASP.NET it uses SqlClient or OleDb to retrieve the data and send it to BLL in the form of a DataSet or DataReader. BLL (Business Logic Layer) is responsible for preparing or processing the data retrieved and sends it to the presentation layer.
The Data layer gets the data from the business layer and sends it to the database or gets the data from the database and sends it to the business layer. In ASP .NET it is an SQL Server or Access database. It can also be Oracle, MySQL or even XML.
In an ASP.NET n-tiered architecture web pages do not make direct calls to the database. A given layer only communicates with its neighboring layers. ASP.NET Web pages should reference custom objects defined in the business object layer. These objects provide database information in a class structure.
The partitioning of ASP.NET applications into front-end, middle tier and back-end layers, the n-Tier architecture supports a more uniform, building block approach to application designs. Hardware and software for presentation, application and database functions can be scaled separately, and included more easily into complex e-Business environments.
The Great and awarded MVP Sample project in 3 -tier web application in asp.net
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=416
thank you