Explain Asp.Net architecture in detail

M.C.A. (Management faculty) (Semester-IV)


IT 45: ADVANCED DEVELOPMENT TECHNOLOGY (2012 Pattern)


Time: 3 Hours Max. Marks 70

1. Instructions to the candidates:
2. Question no 1 is compulsory
3. Answer any four questions from remaining.
4. Neat diagrams must be drawn wherever necessary.


Q.1) Explain Asp.Net architecture in detail.

Ans.

ASP.NET works on three tier architecture. This architecture is extremely popular because they increase application performance, scalability, flexibility, and code reuse. In three tier architecture, applications are divided into three major areas of functionality:

- The data layer manages the data storage and retrieval.
- The business layer maintains business rules and logic
- The presentation layer manages the user interface and related presentation code.

The presentation Layer

Presentation layer provides the interface to the users of website or application. It contains pages like .aspx or Windows forms where data is presented to the user or user enters the information. This layer communicates with business layer. In ASP.NET the code behind file and HTML file are separate file. The HTML file defines the look and layout of the web form and the code behind file contains the presentation logic. This separation helps designers and developers. Designers don't have to worry about business logic to make user interface changes, and developers don't have to worry about to update code.

The business Layer

Business layer or Application layer acts between Application layer and Data Access Layer. This layer contains our logic, validating the data and other functions. In this layer programmer access the data access layer (also known as the DAL), functionality. As example suppose any user wants to register and he fills all the detail and click the submit button on presentation layer then call goes to business layer. In business layer programmers only access the function and pass the parameter that is provided by the end user as example.
InserUserDetails(string Username, string Password, string Email, string Firstname, string Lastname, string Address, float Salary);

The data Layer

All the code related to database is written in this layer. It contains methods to connect with database. It also contains the methods to perform insert, update, delete, select data according to the SQL query.



The main advantages of the 3 Tier Architecture is as follows:

Flexibility – All the layers have separate code so it makes the application much more flexible to changes.

Maintainability – You can change to the components in one layer and it will no effect on any others layers. So you can maintain the application very easily.

Reusability – A single library/component may be accessed by multiple components in the presentation layer. It easier to implement re-usable components by separating the application into multiple layers makes.

Scalability – You can deploy application components across multiple servers, so it makes the system much more scalable.
Post your comment

    Discussion

  • RE: AIT MCA paper Nov 2014 Semester IV Pune University -prakash (05/01/15)
  • Hello Sir,
    Please solved the AIT (Advanced Internet technology) mca mangement paper .