InterviewSolution
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";}
Your experience on this site will be improved by allowing cookies. Read Cookie Policy