...

/

Master Page Life Cycle Events

Master Page Life Cycle Events

In this lesson, you will learn about the page life cycle, which is very crucial in order to develop ASP.NET applications. Most beginners tend to get confused while dealing with 'dynamic controls' and face problems like losing value, state, etc. on postbacks. The sequence of events, especially while working with master pages in ASP.NET has become more complex. This lesson aims to shed light on these events.

Master page life cycle

While serving an ASP.NET request, it goes through many stages. One of the important stages is going through the page life cycle events. A page is a combination of master and content pages and may contain controls like user controls and custom controls. Here, each control has its own life cycle. So, if the controls are interleaved, it becomes necessary to look into the exact event which is being triggered.

Technically, a master page is nothing but a normal user control. It can be treated as a user control on a web page. The content page is nothing but a normal ASPX page.

Events in the master page life cycle

  1. PreInit() ...