

This adds the content place holder to the site with the following code incuded in the page:


Select Add New Item, and select a content place holder from the pop up window: We have now created a Master Page, we now need to add a content placeholder to the site. In the latter part of the article, we will see in detail about the layout and usage of the content placeholder.Ĭontent placeholders allow the user to flexibly maintain site content with a common page layout. The content place holder is placed in the header section and in the form tags which in general allows users to place page content in the header and body part,īut there is no such restriction to place a content placeholder under a particular tag nor is there any restriction on the number of content placeholders to be used. The content place holders in the above are used to place static content or dynamic content by using ASP.NET server controls in the site. The code for the Master Page is as follows: master which consists of all the common elements (a template/layout) for the site.īy default the Master Page comes with two content place holders placed in it. The Master Page comes with the extension. The pop up window, as shown in the figure. In your website, right click on Solution Explorer, select Add New Item, and then select the Master Page from Finally we will see how we can work with multiple themes.Ĭreating a master page is very simple.Create a Master Page with single and multiple content place holders.In this article, we will see an overview of how to: You can work with themes to provide the user with a great User Interface. With a single master page, you can define the look and feel of your application which includes multiple content place holders. Master Pages in ASP.NET allow you to control the layout, design, and common controls of all pages in a website/web application. Creating the Navigation and Menu for the Site.
