I’m just starting with asp.net and followed a tutorial on how to make a masterpage, http://www.asp.net/web-forms/videos/.
But having followed the tutorial i still couldn’t make it work. I even used the same template which is used in the video.
The code i have is auto-generated through the wizards of visual studio.
To be more specific: I dont get any error messages just a plain page with the css which comes from a template i used from the tutorial. The div’s with the menu and the rest does not show on screen. (should have written this in the first place)
From the masterpage:
<asp:ContentPlaceHolder ID="MenuContentPlaceHolder" runat="server">
<div id="header">
<p> <a href="#">Link 1</a> . <a href="#">Link 2</a> . <a href="#">Link 3</a> . <a href="#">Link 4</a></p>
</div>
<div id="subheader">
<p>Apple Core 1.0</p>
</div>
<div id="menu">
<p><a href="#">Menu 1</a> <a href="#">Menu 2</a> <a href="#">Menu 3</a> <a href="#">Menu 4</a> <a href="#">Menu 5</a> <a href="#">Menu 6 </a></p>
</div>
</asp:ContentPlaceHolder>
From default.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2.Default" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
<br />
<h1>Hey</h1>
</asp:Content>
Weird enough i seem to be able to get the menu to show up on screen when i completly remove the content tags from the default.aspx
i think you should try something like this
your masterpage
**place the menu code outside the content place holder in masterpage
your aspx page