ASP.NET

ASP.NET

Web development platform ASP.NET is a programming model that provides the comprehensive infrastructure software, services and various web applications as needed to make robust PCs, and mobile devices.

ASP.NET works over the HTTP protocol and power, and uses HTTP policies such as a browser-to-server communication and cooperation between the two countries.

ASP.NET is part of the Microsoft .Net platform. ASP.NET applications are compiled code components in order to make use of reusable and extensible, they are written on the Net, and the material of the frame of the present. To use the whole of this hierarchy, Net copies of the lessons of those investors.
ASP.NET used to produce interactive, Internet data-driven web applications. This includes the number of text boxes, buttons and controls for coding and code administrator to create HTML pages.

Life Cycle

ASP.NET life cycle, which gives it its species:
  • ASP.NET based web pages generate dynamic output
  • Changes related to the realization, and the laying processed
  • ASP.NET pages dynamically compiles
The course of life, to be able to be divided into two ASP.NET:
  • Application Life Cycle
  • Page Life Cycle
The page itself is moving as a control object. All web forms are basically examples of ASP.NET page classes. 

The page category has the following very useful properties related to internal objects:
  • Session
  • Application
  • Cache
  • Request
  • Response
  • Server
  • User
  • Trace
The controls are generally standard HTML. HTML server controls to enable increased server side processing. The controls such as header HTML tags, anchor tags: the beginning and elements are only processed by the server and sent to the browser for display.

Advantages of HTML using Server Control

ASP.NET server controls can work with all services from HTML server controls, which are then useful controls in the following cases:
  • Use tables for manufacturing layout purposes.
  • To convert from HTML to run in ASP.NET

Security in ASP.NET

There are the following aspects of implementing security in a site:

Authentication: This is the process of ensuring the identity and authenticity of the user. ASP.NET allows four types of authentication:
  • Windows authentication
  • Form authentication
  • Passport authentication
  • Custom authentication
Authorization: This is the process of assigning and assigning specific roles to specific users.

Privacy: This includes encrypting channels between client browsers and web servers.

Integrity: This includes maintaining data integrity. For example, the implementation of digital signatures.

Caching

Caching is a technique of storing frequently used data / information in memory so that the next time the same data / information is needed it can be retrieved directly from memory instead of being generated by the application.

Dynamically generated pages and controls require caching to increase performance in ASP.net. This is especially important for data-related transactions, as they are expensive at the time of response.
Caching frequently used data in quickly accessed media such as a computer's random memory cache memory The ASP.net runtime includes a key-value map of the CLR object named cache. It resides with the application and is available via HTTPContext and System.Web.UI.Page.

In some cases, the caching state is similar to storing goods. However, the storage information in state objects is deterministic, meaning that you can rely on the data stored there, and data caching is non-deterministic.

Caching in ASP

Output caching: Output cache eventually stores a copy of HTML pages or part of a page sent to a client. When the next customer requests this page, a cached copy of the page is sent instead of re-creating the page, saving time.

Data caching: Data caching is the caching of data from a data source. Until the cache expires, the request for data for the cache will be completed. When the cache expires, new data is retrieved by the data source and the cache is replenished.

Object caching: Object caching is caching objects on the page, such as data-bound controls. Cached data is stored in server memory.

Class caching: Web pages or web services are compiled into page classes in the first-run assembly. The assembly is then cached into the server. The next time a page or service is requested, a cached assembly will be referenced. The CLR assembly rejoins when the source code is changed.

Configuration caching: Application-wide configuration information is stored in the configuration file. Configuration caching stores configuration information in server memory.