Preferred Language:

Listing 5.13 - TitleContent.aspx

Illustrates how to change a content page title within a master page.

Listing 5.13 - TitleContent.aspx (C#)
Copy | Try This Code!

    <%@ Page Language="C#" MasterPageFile="SimpleMaster.master" Title="Content Page Title" %>

    <asp:Content 
        ID="Content1" 
        ContentPlaceHolderID="ContentPlaceHolder1" 
        Runat="Server">
        Content in the first column
        <br />Content in the first column
        <br />Content in the first column
        <br />Content in the first column
        <br />Content in the first column
    </asp:Content>

    <asp:Content 
        ID="Content2" 
        ContentPlaceHolderID="ContentPlaceHolder2" 
        Runat="Server">
        Content in the second column
        <br />Content in the second column
        <br />Content in the second column
        <br />Content in the second column
        <br />Content in the second column
    </asp:Content>