Override Master cannot be executed (its not Virtual) and masking it with new reasons causes the problem that the page class cannot get its master, therefore it is best to make the second property.
Sort of:
public CustomMasterPage MasterPage
{
get { return this.Master as CustomMasterPage; }
}
In your BasePage class.
source
share