Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

ASP.NET introduction


May 12, 2021 ASP.NET


Table of contents


Brief introduction

ASP.NET is a web development platform that provides programming models, software infrastructure, and a variety of services to help developers build robust web applications.

ASP.NET work on http protocols and use HTTP commands and policies to establish two-way communication and cooperation between browsers and users.

ASP.NET is Microsoft.NET part of the platform. ASP.NET application is compiled code that runs in the .Net framework and is written with scalable and reusable components and objects.

ASP.NET application encoding can be written in the following languages:

  • C#
  • Visual Basic.Net
  • Jscript
  • J #

ASP.NET an interactive, data-driven web application over the Internet. It consists of a large number of controls, such as text boxes, buttons, assembled labels, configurations, and manipulative encoding to create HTML pages.

ASP.NET web form model

ASP.NET web form extends the event-driven model of interaction to web applications. The browser submits a web form to the web server, and the server returns a full tag page or HTML page in response.

All client user activity is forwarded to the server for stately processing. The server processes the output of the client action and triggers feedback.

HTTP is now a stateless protocol. ASP.NET framework helps store information about the state of your application, consisting of the following:

  • The page status
  • The session state

Page status is the client state, for example, content in different input fields in a web form. S ession state is collection information obtained from different pages that the user browses and uses, such as the overall session state. To get a clearer picture of the concept, we use shopping trolleys as an example.

The user adds items to the shopping trolley. A n item is selected on a page called a project page, and the total number and price of the item collection is displayed on a different page, called a shopping cart page. O nly HTTP is not able to record information from different pages. ASP.NET the session state and the server infrastructure records globally collected information through a session.

ASP.NET When generating ASP.NET runtime encoding, ASP.NET runtime requests page-to-page status at the server terminal and merges with service-side component state in the hidden domain.

ASP.NET this approach, the server is aware of the overall application state and operates as a two-tiered connection.

ASP.NET component model

Asp. T he NET component model provides ASP.NET components of a web page. B asically it's an object model that describes:

  • Almost all HTML elements or labels, such as <form> <input>
  • Server controls to help develop complex user interfaces. For example, a calendar control or a network view control.

ASP.NET is a technology that works on a .Net framework that includes all network-related features. The .NET framework consists of an object-oriented hierarchy. A web ASP.NET is made up of pages. When a user requests a ASP.NET page, IIS delegates the page to the ASP.NET-time system.

ASP.NET the runtime transforms .aspx page into an instance of a class, inheriting the basic class page of the .Net framework. Therefore, each ASP.NET page is an object, and all its components, such as server-side controls, are also objects.

Components of .Net Framework 3.5

Before we move on to the next section on visual Studio.Net, let's take a look at the different components of .Net Framework 3.5. The following table describes the components of .Net Framework 3.5 and what they do:

Components and descriptions
(1) General language operating environment or CLR
It performs memory management, exception handling, debugging, security checks, thread execution, code execution, code security, validation, and compilation. C ode that is managed directly by the CLR is called management code. B ut by managing the code being compiled, the compiler converts the source code into a CPU-independent mediation language (IL) code. The Real Time (JIT) compiler compiles IL code into source code, specific to the CPU.
(2). Net Framework Class Library
It contains a huge library with reusable types. Classes, interfaces, structures, and enumeration values, collectively referred to as types.
(3) General language specifications
It contains for . Specifications for language and integration language implementations supported by NET.
(4) Universal type system
It provides guidance on declaring, using, and managing types and cross-language communication at runtime.
(5) Metadata and assemblies
Metadata is binary information that describes a program, either stored in an executable file (PE) or in memory. An assembly is a logical unit that consists of an assembly manifest, metadata type, IL code, and a set of resources, such as picture files.
(6) Windows Forms
Windows Forms includes a graphical presentation of any window that is displayed in the application.
(7) ASP.NET and ASP.NET AJAX
ASP.NET is the web development model, and AJAX is an ASP.NET for the development and execution of AJAX functions. ASP.NET AJAX includes components that allow developers to update data on a Web page without having to download it completely.
(8)ADO.NET
It is a technology related to data and database work. I t provides access to data sources such as SQL servers, OLE DB, XML, and so on. ADO.NET allows connection source data to be retrieved, operated, and updated.
(9) Windows Workflow Foundation (WF)
It helps build workflow-based applications in Windows. It includes activities, workflow runtimes, workflow design, and rule engines.
(10) Windows describes the basis
It provides a separation between the user interface and the business logic. It helps develop visually impacting interfaces by using documents, media, 2D and 3D graphics, animation, and more.
(11) Windows Communication Foundation (WCF)
It is a technology used to build and execute connected systems.
(12)Windows CardSpace
It provides security for access to resources and the sharing of private information on the web.
(13)LINQ
It gives the .NET language data query capability to take advantage of a synth similar to SQL, the traditional query language.