J
John A. Bailo
I created what I thought was the simplest possible demo of a Master
page and a Content page in VS.NET 2005 but I can't get the master
content to show up.
I added a Master Page. I put the word "Master Page Test" in the
Content area.
I put the words "Content Page Test" in the content area.
I checked the header and it says
<%@ Page Language="C#"
MasterPageFile="~/Site1.Master"
AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="mySite.WebForm1" Title="Untitled Page" %>
Now if I set WebForm1.aspx as the startup, it doesn't display the
Master Page content at all.
I thought it would appear as a header.
page and a Content page in VS.NET 2005 but I can't get the master
content to show up.
I added a Master Page. I put the word "Master Page Test" in the
Content area.
WebForm1.aspxFrom the Master Page I right-clicked and created a Content page called
I put the words "Content Page Test" in the content area.
I checked the header and it says
<%@ Page Language="C#"
MasterPageFile="~/Site1.Master"
AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="mySite.WebForm1" Title="Untitled Page" %>
Now if I set WebForm1.aspx as the startup, it doesn't display the
Master Page content at all.
I thought it would appear as a header.