Yes, they can, and there are several approaches to this.
The approach that I use is to create public methods on the main page that will modify / access the data on the main page. For example, I usually like to change the link style for the current page / category on which I am included, so I have a method on my main page, for example:
Public Sub SetNavigationPage(ByVal MenuName As String) DirectCast(Me.FindControl(MenuName), HyperLink).CssClass = "MenuCurrent" End Sub
Then, on my content page, I simply access this method as such:
Dim myMaster As EAF = DirectCast(Me.Master, EAF) myMaster.SetNavigationPage("hypViewEmployee")
... where EAF is the class name of my homepage.
One interesting problem I discovered is that I had difficulty using the Visibility property of .NET controls when trying to show / hide them this way. This is due to the rendering of the wizard pages and content. To solve this problem, I set the basic CSS style for both visible and hidden, and set the CssClass property accordingly.
Dillie-o
source share