I have a control that can be placed in a Web form (.aspx) or a Master Page (.master). I want it to function differently depending on which one it's in.
My first thought is to climb the control tree back to the root and see if I cross over a MasterPage control. If so, then it would have to be in the Master Page.
But, this seems inefficient. Is there a better way?