Which control add in Master Page to define region?
-
22-10-2019 - |
Question
I am developing an ASP.NET Web application. I create a master page. The master page requires a region where i can add page-specific content by using the ASP.NET page designer. I need to add a control to the master page to define the region. Which control should I add?
ContentPlaceHolder or PlaceHolder?
Solution
ContentPlaceHolder
is specifically for use on master pages to hold page-specific content. PlaceHolder
is for use on content pages.
Use ContentPlaceHolder
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow