|
ASPX • Build Your First Master Page Listing 1. VS.NET 2005 creates this default master page file. You can implement a consistent look and feel by defining objects and styles outside of the ContentPlaceHolder that will show up in any content page that inherits this master page. <%@ Master Language="VB"
CompileWith="BasicMasterPage.master.vb"
AutoEventWireup="false"
ClassName="BasicMasterPage_master" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example Master/Content Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentplaceholder
id="BasicContentPlaceHolder"
runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
|