ASP.NET FRAMEWORK WITH C#
Life Cycle of ASP.NET Applications:
The
application life cycle has the following stages:
·
User makes
a request for accessing application resource, a page. Browser sends this
request to the web server.
·
A unified
pipeline receives the first request and the following events take place:
o An object of the class ApplicationManager is
created.
o An object of the class HostingEnvironment is
created to provide information regarding the resources.
o Top level items in the application are compiled.
·
Response
objects are created. The application objects such as HttpContext, HttpRequest
and HttpResponse are created and initialized.
·
An instance
of the HttpApplication object is created and assigned to the request.
·
The request
is processed by the HttpApplication class. Different events are raised by this
class for processing the request.
ASP.NET Page Life Cycle :
When
a page is requested, it is loaded into the server memory, processed, and sent
to the browser. Then it is unloaded from the memory. At each of these steps,
methods and events are available, which could be overridden according to the
need of the application. In other words, you can write your own code to
override the default code. The page life cycle phases are:
- Initialization
- Instantiation
of the controls on the page
- Restoration
and maintenance of the state
- Execution of
the event handler codes
- Page
rendering
Ø An
ASP.NET page is also a server side file saved with the .aspx extension. It is
modular in nature and can be divided into the following core sections:
- Page Directives
- Code Section
- Page Layout
v The page layout provides the interface of the
page. It contains the server controls, text, inline JavaScript, and HTML tags. The
following code snippet provides a sample ASP.NET page explaining Page
directives, code section and page layout written in C#:
Thanks For Reading My Blogs. You Can Also Continue Your Learning By Reading These More Blogs -
- Content Hub Seller and Marketing Fundamental
- Getting Started With Sitecore Send : Part 1
- Sitecore JavaScript Services
- Sitecore Search
- Sitecore Basics
- SITECORE PRACTICE SAMPLE QUESTIONS FOR INTERVIEW & CERTIFICATION (PART - 1)
- SITECORE PRACTICE SAMPLE QUESTIONS FOR INTERVIEW & CERTIFICATION (PART - 2)
- LaMDA Software
- Blockchain Technology
Thanks for This Article
ReplyDeleteWonderful
ReplyDelete