Creating a Content Page
This topic shows how to create a content page for your web site. Note that you must create a master page before creating a content page.
Creating a Content Page
- In the Solution Explorer, right-click the web project (second node from the top) and select Add New Item from the menu. This launches the Add New Item dialog:

- Under My Templates, select MM .NET Web Business Form.
- In the Name text box enter the name you want to give your new form.
- Check the Select master page check box, then click Add to continue.
- In the Select a Master Page dialog, select MasterPageMain.master, then click OK to create the form:

Notice the Content element's ContentPlaceHolderID attribute specifies ContentPlaceHolder1 as the place holder associated with this page:

If you have multiple place holders on a page, you can click on the ContentPlaceHolderID setting, press Ctrl+J and a list of all content place holders is displayed from which you can select a different place holder.
- To display the new web form in design mode, go to the bottom of the editing window and click the Design tab. Your form is displayed in the context of the master page (with the master page dimmed):

- From the Solution Explorer, drag the mm.css cascading style sheet (located in the App_Themes\MMTheme folder) and drop it on the new form. This adds a link to the MM .NET cascading style sheet to the form . Cascading style sheets allow you to specify a uniform look and feel for your web pages (fonts, colors, and so on). For details, see the Help topic Using Cascading Style Sheets.
- In the Properties Window's combo box, select DOCUMENT, then change the form's Title property to the text you want to appear in the Web Form's title bar at run time.
- If you want this to be your Web site's start page, in the Solution Explorer, right-click CustomerOrders.aspx and select Set as Start Page from the shortcut menu.
You can now drag and drop controls to design the content for this page.
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/26/18
Comment or report problem with topic
