In: Computer Science
Q: Explain the Use of ASP.NET in Web Layer.
Avoid Plagiarism (copying) please.
ASP stands for Active Server Pages It is a development framework for building the webpages.This is the server side technology that enables the computer code to be executed by an internet.It is important to know that ASP.NET extends the .NET platform with tools and libraries specifically foe building web apps.
A layer is a reusable portion of code that performs a specific function.In the .NET environment, a layer is usually set up as a project that represents this specific function. This specific layer is in charge of working with other layers to perform some specific goal.
The use of ASP.NET in Web Layer is itself categorised into three more layers such as-
1) DATA LAYER - A data layer is a JavaScript object that is used to pass information from your website to your Tag Manager container. It further helps the t helps the Business Layer to connect the data and perform required actions.
2) BUSINESS LAYER - A business layer contains business logic, validations or calculations related to the data. The Business Layer is vital in that it validates the input conditions before calling a method from the data layer.
3) PRESENTATION LAYER - The Presentation Layer contains pages like .aspx or Windows Forms forms where data is presented to the user or input is taken from the user. The ASP.NET web site or Windows Forms application (the UI for the project) is called the Presentation Layer.
ASP.NET core architecture
Application Core - The Application Core holds the business model, which includes entities, services, and interfaces. These interfaces include abstractions for operations that will be performed using Infrastructure, such as data access, file system access, network calls, etc.
UI Layer - The user interface layer in an ASP.NET Core MVC application is the entry point for the application. This project should reference the Application Core project, and its types should interact with infrastructure strictly through interfaces defined in Application Core. No direct instantiation of or static calls to the Infrastructure layer types should be allowed in the UI layer.