When using master pages, there are times when you want to access part of the Master Page (e.g. a public property). One way of doing this is by defining the master page with the MasterType directive.
<%@ MasterType VirtualPath="~/MyMasterPage.master"%>
By doing this, you can now access the MasterPage as a class Master, and programatically (and with the benefits of compilation checking) access it.
Powered by: newtelligence dasBlog 2.3.9074.18820
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, © Copyright 2010
E-mail