home / software / tips and tricks / How to access ContentPlaceHolder from Nexted masterpage.

How to access ContentPlaceHolder from Nexted masterpage.

Updated:  04/25/2011 14:04 PM
Author:  Shiju Mathews

Status:    Resolved.


Suppose you have a page called Home.aspx, which uses a master page 'StoreMaster.Master'.

This masterpage has a ContentPlaceHolder called 'cphStore' inside the '<asp:Content' inherited from parent Masterpage called ‘CompanyMaster.master’

Where 'StoreMaster.Master' is a nested masterpage with a parent Masterpage called ‘CompanyMaster.master’. This masterpage has a ContentPlaceHolder called 'cphCompany'.

If you want to access the current ContentPlaceHolder from Home.aspx, we need to go hierarchically.



Tags: How to access ContentPlaceHolder from Nexted masterpage.
Updated on: December 2024