Because of the way themes are applied to a page at run time, you need to set the theme early on in
the page’s life cycle, in the PreInit event to be precise. The base page of the website is once again the ideal location to do this, because every page in the site inherits from this class.