Is it possible to dynamically assign a home page?
Assign the master page to the PreInitwhos pages MasterPagethat you want to dynamically install:
PreInit
MasterPage
protected void Page_PreInit(Object sender, EventArgs e) { this.MasterPageFile = "~/YourMaster.master"; }
You can assign the main page at a time Page_PreInitusing the property MasterPageFile.
Page_PreInit
MasterPageFile
Me.MasterPageFile = "~/masterpage.master"
Source: https://habr.com/ru/post/1764866/More articles:ItemsControl "Overflow to Popup" - c #One-to-Many NSPredicate Problem in NSFetchedResultsController - iphoneВыберите отдельный список подстрок из одного из полей таблицы MySQL - mysqlPython HTTP client Twisted framework - pythonStrange problem with left join and subquery in Select - sql-serverНевозможно подключиться к MySQL из PHP: "mysql_connect(): нет такого файла или каталога" - phpQVariantMap Json Parsing in QT - qtGtkExpander style widget in wxWidgets? - pythondatabase update questions - javaMongoDB assumes a 64-bit system - does this mean hardware or the kernel of the OS, or both? - mongodbAll Articles