ページごとにメニューが異なる Web サイトを作成しています。だから私は、ページ見出し、メニュー、コンテンツの 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>