下面的示例演示了一个Corporate Master页面一个Research department Master页面和最终包含具体内容的Publicationaspx页面下面的代码显示了Corporate页面注意它的内容占位符是在阴影部分定义的
<%@ Master Language=VB %>
<!DOCTYPE html PUBLLC //WC//DTD XHTML //EN
http://wwwworg/TR/xhtml/DTD/xhtmldtd>
<html xmlns=http://wwwworg//xhtml>
<head runat=server>
<title>CorporateMaster</title>
</head>
<body>
Corporation Name
<form id=forml runat=server>
<div>
<asp:contentplaceholder
id=ContentPlaceHolderCorporate
runat=server>
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
[] [] []