Hi Arne,
your content page contains property named Master which allows you to get
reference to your master page. This property returns instance of MasterPage
class by default so you have to cast it to your master page class.
If you want to have strongly typed system you have to insert MasterType
directive to your content page. After that Master property will return
instance of type defined in this directive.
So now you have an idea how to access Master page but this is still not end
of the story
You have to define public properties and methods on your
master page to allow modifications to UI outside of this class (all UI
elements are marked as protected by default).
Regards,
Ladislav
- Show quoted text -