Is there a way to get access to a puplic property on a user control from a nested master page?
Let me explain further
I have 3 deep master pages
- global.master
- LargeTopNav.master (inherits global.master)
- LargeTopNav25-50-25.master (inherits LargeTopNav.master)
- feature.aspx – This page is where I would like to access a custom user control I have on LargeTopNav.master to be able to set a property.
I’m fairly new to .net so any help is appreciated.
There is a
MasterTypeproperty you could set on the feature.aspx page like e.g.:Then, in turn, provide access to the control’s property through a property you create in your LargeTopNav.master master page class:
Last, in your feature.aspx page, access the property of the master page that provides access to the underlying control: