我正在创建一个在不同页面中有不同菜单的网站。所以我正在创建一个母版页,其中包含 3 个内容占位符,分别用于页面标题、菜单和内容。我无法为此母版页创建内容页。任何帮助,将不胜感激。如果我是新手,如果我没有遵循正确的指导方针,请原谅我。
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="PTS.Master.cs" Inherits="PTS.UI.Site1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Patient Tracker System</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
.style1
{
font-size: small;
}
</style>
</head>
<body>
<section id = "main>
<asp:ContentPlaceHolder ID="ContentPlaceHolderMain" runat="server">
<form id="form1" runat="server">
<div id="wrapper">
<div id="page">
<div id="page-bgtop">
<div id="page-bgbtm">
<div id="content">
<!-- Enter Your Contents Here-->
<asp:ContentPlaceHolder ID="ContentPlaceHolderContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<!-- end #content -->
<div id="logo">
<h1 class="style1"><a href="#">Patient Tracker System</a></h1>
<br />
<br />
<asp:ContentPlaceHolder ID="ContentPlaceHolderPageHead" runat="server">
</asp:ContentPlaceHolder>
</div>
<div id="sidebar">
<%--Paste your Customized Menus--%>
<asp:ContentPlaceHolder ID="ContentPlaceHolderMenu" runat="server">
</asp:ContentPlaceHolder>
</div>
<!-- end #sidebar -->
<div style="clear: both;"> </div>
</div>
</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>Copyright (c) 2012 Patient Tracker System.</p>
</div>
<!-- end #footer -->
</form>
</asp:ContentPlaceHolder>
</section>
</body>
</html>