C# 页面指令继承
我今天在开始工作时遇到了很多麻烦。。。我一直在C# 页面指令继承,c#,asp.net,vb.net,page-directives,C#,Asp.net,Vb.net,Page Directives,我今天在开始工作时遇到了很多麻烦。。。我一直在 Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Webapp5.landing'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="landing.aspx.cs" Inherits="Webapp5.landing" %>
Line 2:
Line 3: <!DOCTYPE html>
这是我的页面
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="landing.aspx.cs" Inherits="Webapp5.landing" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
我知道我错过了一些简单的事情。。。。但我就是不能让它工作?
关于如何运行此页面,您有什么想法吗?请尝试“清理/重建”解决方案。如果我在一个实时开发站点上运行这个程序,看看错误是否会消失。。但是,我似乎无法启动新页面。您确定要放入已编译的解决方案吗?如果这是一个临时文件,并且您向我们显示了.cs文件中的所有内容,则您可能缺少使用语句的功能。这些文件中没有其他内容。。我只是想得到一个基本的页面出现之前,我开始建设它。。。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="landing.aspx.cs" Inherits="Webapp5.landing" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>