c# - Disable feature in Master Page from Content Page -
I have a master page for all my ASP.Net pages. It works fine for 95% of pages ... except that it contains unwanted features that are included in other 5% pages. What causes problems in this application? Is it possible for content pages to enable / disable the feature available in the master page in any way? One option I can think of is to consider the name of the page for the master page and then to decide what to do, but it has been running for a long time ...
You can add a mastertime directive to your content page so that you can gain access to the master page class ... and from there you can master your master page. ..
& lt;% @ MasterType virtualpath = "~ / MyMaster.master"% & gt;
and you will have access to the master property as a class typed in your code ...
Comments
Post a Comment