You can access the main page from the current page and apply it to your class type:
MyMasterPage master = Master as MyMasterPage; var value = master.NeededProperity;
Looks like here on MSDN in the comments:
An open property is a good way, but you would need to put a MasterType directive on every page of content (.aspx file). If content pages extend the base class (which extends the page), the same strong text input can be made in the CodeBehind base class. For instance:
// MySiteMaster : System.Web.UI.MasterPagepublic string Message { get { return MessageContent.Text; } set { MessageContent.Text = value; } } // MyPage : System.Web.UI.Page MySiteMaster masterPage = Master as MySiteMaster; masterPage.Message = "Message from content page";
MessageContent is a control of the main page. The MyPage class can return Message as its own property or allow derived classes to access it directly.
source share