asp.net - 2 master pages one user control, how do I find what master page is being used?

问题描述:

So I have 2 master pages and one user control which is used on almost every page. Page may have one of 2 master pages and both master pages have one property common. It is a list variable that I need access. How do I know which master page is being used and then access it?

I am trying

MasterPage mp = (MasterPage)this.Page.Master;

but when I debug, I don't see the list property. mp.List doesn't work. Any idea on how to get this property?