Reputation: 77030
I have an ASP.net page which uses a master page. The master page has a public property. Does anybody know how can I access the given property from a content page that uses the master page?
Upvotes: 0
Views: 676
Reputation: 3054
Look into Strongly Typing your Master Page link
Check out the <%@ MasterType virtualPath="~/MasterPage.master"%> tag.
<%@ MasterType virtualPath="~/MasterPage.master"%>
This enables you to directly have access to the public properties/methods.
Upvotes: 2