ASP Master/Content Not Working

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top