Showing posts with label ASP.NET. Show all posts
Showing posts with label ASP.NET. Show all posts

ASP.NET Life Cycle.

ASP.NET is a server-side technology used for developing dynamic websites and web applications. It is the latest version of active server pages, active server pages is a server-side scripting language and engine used for developing web applications. It is essentially a web-based platform that helps to create a dynamic web-based platform that helps to create dynamic web pages for programmers. 

ASP.NET has some specific steps that are to be carried out for an application these steps are called Life Cycle.

ASP.NET Life Cycle is divided into two groups:

1. Application Life Cycle.

2. Page Life Cycle.

Application Life Cycle.

Application Start > Object Creation > HTTP Application > Dispose > Application End

  • Application start is a method that can be executed by the webserver when a user makes a request. 
  • The HTTP requests contain all the information about the current request, like cookies and browser information. 
  • An object helps to process each subsequent request sent to the application that is created by the web browser. 
  • Dispose is an event that can be called before the application is destroyed. This helps to release manually unmanaged resources. 
  • Application end is the final part of the application and this can help to unload the memory. 

Page Life Cycle.

ASP.NET web page life cycle has specific steps that are carried out during the execution. These phases include initialization, restoring, and execution. The important phases of the page life cycle are: 
  • Page Request: When the user requests a page, the server checks the request and then compiles the page and responds to the user. If the page is requested several times then the cache will check the request to see if the output exists or not and after that it will send a response back to the user. 
  • Page Start: In this phase, two steps are carried out request and response. The request holds all information that was sent when the page was requested and the response holds all the information which send back to the user. 
  • Page Initialization: In this phase, all the controls on the page are set and each has a particular ID, and themes are applied to the pages. 
  • Page Load: In this phase, all the controls properties are loaded, and information is set using view state and control state. 
  • Validation: Validation happens when the page execution goes successful and then it returns true else the execution fails and it returns false. 
  • Event Handling: Event handling happens in response to validation. In this case, the page is loaded again and displays the same information so the postback event handler is called in order to overcome this problem. This event helps in checking the credentials of the user.
  • Rendering: Rendering occurs before all the response information is sent to the user. It also stores all the information sent to the user. 
  • Unload: Unload phase helps to clean all the unwanted information, it also cleans the memory once the output is sent to the user. 

What is ASP.NET? Introduction to ASP.NET



Many questions come to our mind while building an application and all we think about is the speed, cost, and language. And ASP.NET is one of the best choices for building any application. 

Why use ASP.NET?

For building Web application ASP.NET is much easier compared to other technology like PHP and Node.js. It is much faster much efficient than many other languages. ASP.NET allows you to build many applications like REST API and Web pages. It takes less time for execution and execution takes place only once. 

What is ASP.NET?

ASP.NET is server-side technology used for developing dynamic Web applications. It was released in 2022 and had an extension of .aspx. It produces interactive, data-driven Web applications on the internet. It is developed by Microsoft and it is mainly used to develop websites and web applications. ASP.NET is the latest version of active server pages which Microsoft developers to build a website. 

The architecture of ASP.NET.

ASP.NET architecture help in increasing performance, stability, and flexibility. ASP.NET works on HTTP protocol and uses HTTP commands. First, ASP.NET request an HTML file from the server then IIS (Internet Information Services) passes that information to the ASP.NET engine, and after that ASP.NET engine read the file and execute the script. Then ASP.NET returns to the browser as an HTML file. 

Note: IIS is a powerful web server that provides a very reliable, scalable,  and manageable Web application Infrastructure. It lowers the system administration costs, which helps organizations to increase Website and application availability. 

Components of ASP.NET.

  • Language: This can help in developing the web application. Some of them are VB.net and C#.
  • Library: It is a prewritten class and coded template that a developer can use while developing an application. The most common library used in ASP.NET is the web library. 
  • Common Language Runtime: This is the platform that is used to execute the program. It is also use for performing activities like Garbage Collection. 
Skills required to Master ASP.NET.
  • Basic of C#, JavaScript, HTML.
  • Knownledge of ASP.NET MVC.
  • Good Knowledge of OOPs
  • Web Development.
Benefits of ASP.NET.
  • High Performance. 
  • Secure
  • Multiple Development modes.
  • Language Independent.
  • Globalization and Localization. 

DON'T MISS

Tech News
© all rights reserved
made with by AlgoLesson