Inside this new BasePage class you add an event handler that is called when the class fires its
PreRender event. As you learned earlier, this event is raised quite late in the page’s life cycle, when the
entire page has been set up and is ready to be rendered to the client: