Write below code in Page_preInit() event: this.MasterPagefile="~/new master.master"