ASPX • Create a Content Page

Listing 2. VS.NET 2005 created this initial content page when selecting the BasicMasterPage.master file from the sample project provided. You must place all content within an <asp:content> server control that is linked to the ContentPlaceHolder from the master page.

<%@ Page Language="VB"
   MasterPageFile=
      "~/MasterPages/BasicMasterPage.master" 
   AutoEventWireup="false" 
      CompileWith="BasicContentPage.aspx.vb"
   ClassName="BasicContentPage_aspx" 
      title="Basic Content Page" %>
<asp:Content ID="BasicContent" 
   ContentPlaceHolderID="BasicContentPlaceHolder" 
      Runat="server">
   Welcome to your first content page using ASP.NET 
   2.0 Master Pages!
</asp:Content>