ascx access parent master page
Code Example - ascx access parent master page
MasterPage mstr = this.Parent.Page.Master as MasterPage;
MasterPage mstr = this.Parent.Page.Master as MasterPage;