<%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Sample Nested Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
<h1>Book Rep System Home</h1>
<p>Welcome to the book rep system</p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="sideContent" Runat="Server">
<h2>New Releases</h2>
<p>Core C#</p>
</asp:Content>
File: Default.master
<%@ Master Language="C#" MasterPageFile="~/MasterDefault.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="parentContent" Runat="Server">
<div id="container">
<div id="header">
<img src="~/logo.gif" />
<asp:Image runat="server" ID="imgLogo" ImageUrl="~/cool.gif" />
</div>
<div id="sideArea">
<div id="menu">
<asp:BulletedList ID="blstSample" runat="server" DisplayMode="HyperLink">
<asp:ListItem Value="">Home</asp:ListItem>
<asp:ListItem Value="">Products</asp:ListItem>
<asp:ListItem Value="">About</asp:ListItem>
</asp:BulletedList>
</div>
<div id="sideAreaBox">
<asp:ContentPlaceHolder ID="sideContent" runat="server">
<p>default side content</p>
</asp:ContentPlaceHolder>
</div>
</div>
<div id="mainArea">
<asp:ContentPlaceHolder ID="mainContent" runat="server">
<p>default main content</p>
</asp:ContentPlaceHolder>
</div>
<div id="footer">
<p>footer</p>
</div>
</div>
</asp:Content>
File: MasterDefault.master
<%@ Master Language="C#" %>
<!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></title>
</head>
<body>
<form id="form1" runat="server">
<div id="topNav">
<p>
Pearson Ed Navigator<br />
<asp:DropDownList ID="drpPlaces" runat="server">
<asp:ListItem>Book System</asp:ListItem>
<asp:ListItem>A</asp:ListItem>
<asp:ListItem>B</asp:ListItem>
</asp:DropDownList>
</p>
</div>
<asp:contentplaceholder id="parentContent" runat="server"/>
</form>
</body>
</html>
|