vs2008模版页显示问题
模版页html
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
<asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">
<asp:Label ID="Label1" runat="server" Text="学生安全管理系统" Font-Bold="True"
Font-Italic="False" ForeColor="Blue"
style="position:absolute; top: 15px; left: 381px;"></asp:Label>
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<asp:Label ID="Label2" runat="server" Text="学生安全管理系统" Font-Bold="True"
Font-Italic="False" ForeColor="Blue" style="position:absolute; top: 15px; left: 381px;"></asp:Label>
<asp:Menu ID="Menu1" runat="server">
<Items>
<asp:MenuItem NavigateUrl="Default.aspx" Text="基本信息管理" Value="基本信息管理">
<asp:MenuItem Text="新建项" Value="新建项"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="班级日程管理" Value="班级日程管理"></asp:MenuItem>
</Items>
</asp:Menu>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
引用页面html
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr>
<td>
<asp:Label ID ="userIDLbl" runat="server" Text="用户名"></asp:Label>
</td>
<td>
<asp:TextBox ID="userIDTxt" runat="server"></asp:TextBox><br />
</td>
</tr>
<tr>
<td>
<asp:Label ID ="userPasswordLbl" runat="server" Text="密码"></asp:Label>
</td>
<td>
<asp:TextBox ID="userPasswordTxt" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</asp:Content>
引用了master页面 但是label和menu的内容的显示不出来
请教 谢谢
------解决方案--------------------
看到加我qq楼主,542800202