Exploring life cycle events
Each and every page in a VB application goes through a life cycle in which a series of actions or tasks is performed. These actions include the initialization of a page, the initialization of types and variables, the rendering of UI components, allowing a user to save the changes before they exit a page, and the cleanup of the resources after leaving the page. It's really important to understand the life cycle of a page so that you can write your code at the correct life cycle stage.
Similarly, an application and its flows have their own life cycles. An application can contain multiple flows, and a flow can contain multiple pages.
Every stage of the page has associated events that you can use to write your code. For example, you want users to log in before they try to access a secured page, and you want to delete the user's session after they have left that page.
Let's learn about the different life cycle events of a page through...