in my master page init sub I have a block of data/text being written to a control. The basic idea was that it should be available on every page (obviously). However, I have come across a situation in which I need this to NOT happen on a certain page. Is there anything I can do, short of making a new master page for this specific page, to make this work? I also use a basepage, if that ever needs to come into play. Thanks!
Share
Make a virtual readonly property in your base page class called
ShouldDoThingythat always returns false.Override it in this specific page to return true.
In the master page, check
if (((BasePageClass)Page).ShouldDoThingy)