ASP Master/Content Not Working

  • Thread starter Thread starter John A. Bailo
  • Start date Start date
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.
From the Master Page I right-clicked and created a Content page called
WebForm1.aspx

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.
 
Back
Top