一拖控件就出现master page error

priestmoon 2009-07-14 09:32:29
master page的代码:

site.master

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="site.master.cs" Inherits="site" Debug="true" %>

<!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="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form runat="server">
<h1>Wrox United</h1>
<asp:ContentPlaceHolder id="mainContent" runat="server">
</asp:ContentPlaceHolder>
<p>
All images and content copyright © Wrox Press and its subsidiaries 2006
</p>
<p>
web site designed by <a href="www.qq.com"></a>
</p>
</form>
</body>
</html>



采用site.master为母版的web form(自动生成)代码:

about.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="about.aspx.cs" Inherits="about" %>

<form id="form1" runat="server">

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" Runat="Server">
</asp:Content>
</form>




现在,于about.aspx的design面板下拖一个标准控件Label,
结果报错master page error。
哪里出了问题呢?
...全文
38 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
priestmoon 2009-07-14
  • 打赏
  • 举报
回复
在线等!

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧