Master Pages
Master Pages
Header
Navigation
Content
Footer
Master Pages
(Current Situation)
MySite.master Default.aspx
<%@ Master %> <%@ Page Master=“~/mySiteMaster” %>
Header <asp:Content
Navigation ContentPlaceHolderId=MainContent
/>
<asp:ContentPlaceHolder
Id=MainContent />
Footer
Runtime
Header
Navigation
Footer
<configuration>
<system.web>
<page masterPageFile=“~mypage.master”/>
<system.web>
<configuration>
Overriding the Master Page
<configuration>
<location path=“AdministrativeArea”>
<system.web>
<page masterPageFile=“~mypage.master”/>
<system.web>
</location>
<configuration>
Working with page title
(CodeBehind)
public string TitleText
{ Master Page
get { return Title.Text; }
set { Title.Text = value; }
}