Click here to Skip to main content
15,898,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the main role of content tag and content place holder?
Posted

It is well explained with example here: aspnet_masterpages[^]
 
Share this answer
 
v2
Comments
Member 10651903 7-Mar-14 14:11pm    
thanks
In ASP.NET, the Master Page can contain a ContentPlaceHolder control that is used to define a region of the Master Page rendering that can be substituted with content from a page associated to the Master Page.

A content placeholder control is a piece of code on a master page that works together with a content control on a content page.
The content placeholder control displays default content (which can be no content, if the control is empty) for that region on the page but can be overridden by unique content from a content control on a content page. Any page using the master page can replace the content in a content placeholder control by supplying a matching content control. If a content control is empty, the content placeholder control gets overridden with an empty value that consequently removes the control from the page. see more...[^]

More on MSDN[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900