I am trying to change the main page dynamically, and although this is easy to do from the content page (overriding OnPreInit ), there is no such event for the main page. Is it possible to somehow represent this event?
UPDATE: I got halfway through going through the PreInit pages at the bottom of the stairs, it turns out you can do something like base.Master.MasterPageFile = "/master.Master"; , but for some reason it doesnโt. Download the material in the title of the most important main page, namely the style sheet.
source share