当前位置:编程学习 > C#/ASP.NET >>

“"mynamespace._Default""”不是属性“inherits”的有效值。

本人用的是VS.net2005  在编译的时候出现了这个问题 请各位大哥帮忙看看
以下是我的代码
default.aspx的代码如下

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="mynamespace._Default"" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    
    
        <div>
         请输入:<input id="Text1" type="text"/>
            <input id="Button1" type="button" value="提交" onclick="B_C" />
        </div>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
   
    </form>
</body>
</html>


default.aspx.cs代码如下
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
    protected void B_C(object sender, EventArgs e)
    {

        labell.Text = "您输入的是:" + TextBox1.Text;
    }
 }

然后就出现了 “"mynamespace._Default""”不是属性“inherits”的有效值。 这么个错误 谢谢了 请各位大哥高手帮忙解决
--------------------编程问答-------------------- 把“mynamespace._Default”改成“Default” --------------------编程问答-------------------- 把“mynamespace._Default”改成“Default”

--------------------编程问答-------------------- 谢谢两位兄弟 但是还是不行
--------------------编程问答-------------------- 哪位高手请出售解决一下  急啊谢谢了 --------------------编程问答-------------------- --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,