| Can we set Master Page dynamically?
Yew, we can change Master Page dynamically. But to change this we use MasterPageFile property to be set only in the PreInit event. Below is the syntax of set Master Page dynamically:-
void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "~/MasterPageID.master";
} | | |