Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is knowing the Asp.net lifecyle important to coding in Asp.net?

Tags:

asp.net

Why is knowing the Asp.net lifecyle important to coding in Asp.net?

like image 777
Nathan Stanford Avatar asked Oct 20 '10 12:10

Nathan Stanford


People also ask

What is ASP.NET page life cycle constructor?

ASP.NET Page Lifecycle. In ASP.NET, a web page has execution lifecycle that includes various phases. These phases include initialization, instantiation, restoring and maintaining state etc. it is required to understand the page lifecycle so that we can put custom code at any stage to perform our business logic.

Which of the following is the last event of ASP.NET page life cycle?

UnLoad - The UnLoad phase is the last phase of the page life cycle. It raises the UnLoad event for all controls recursively and lastly for the page itself. Final cleanup is done and all resources and references, such as database connections, are freed.

Which of the following are the life cycle events of ASP.NET pages in print II INT III load IV UnLoad 1 point?

ASP.NET Page Life Cycle includes events PreInit, Init, InitComplete, OnPreLoad, Load, PostBack, LoadComplete, OnPreRender, OnSaveStateComplete, Render, and UnLoad.

What is web form life cycle?

Every request for a page made from a web server causes a chain of events at the server. These events, from beginning to end, constitute the life cycle of the page and all its components. The life cycle begins with a request for the page, which causes the server to load it.


1 Answers

Because otherwise, you will end up making false assumptions about your code.

It is never a good idea to develop for a platform without understanding how that platform works.

At the very least, all ASP.Net developers must understand the difference between client-side code (Javascript) and server-side code (C#), and how the postback model works.
It is also a good idea to understand ViewState and session.

like image 131
SLaks Avatar answered Oct 24 '22 20:10

SLaks