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 re开发者_开发百科gion. Which control should I add?
ContentPlaceHolder or PlaceHolder?
ContentPlaceHolder
is specifically for use on master pages to hold page-specific content. PlaceHolder
is for use on content pages.
Use ContentPlaceHolder
.
精彩评论