Click here to Skip to main content
15,883,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is placeholder and ContentPlaceHolder??
And when are thsese used in Web pages
Posted

PlaceHolder: It is used to dynamically add controls on a web page. This[^] example shows how to use it.

ContentPlaceHolder: It is used in master pages to define the area that will be filled by content pages at runtime. This[^] example shows how to use it.
 
Share this answer
 
Comments
Tejal S 21-Jan-13 3:56am    
Thnk u :)
A PlaceHolder control is used as a container for any controls you wish to add and can be used on any page. A ContentPlaceHolder is used to hold content from Content Pages and can only be used on a Master Page.

Look here for documentation on MSDN:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx[^]

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.placeholder.aspx[^]
 
Share this answer
 
Comments
Tejal S 21-Jan-13 3:56am    
Thnk u :)

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