新建了一个网站在Default.aspx写入了
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 zhi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
shuchu();
}
public void shuchu()
{
string str1 = "你好";
string str2 = "你好啊";
string str = str1 + str2;
Response.Write(str);
}
}然后调试 出错
错误 1 “ASP.default_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写 c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 296
错误 2 “ASP.default_aspx.ProcessRequest(System.Web.HttpContext)”: 没有找到适合的方法来重写 c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 301 错误 3 “ASP.default_aspx”不会实现接口成员“System.Web.IHttpHandler.IsReusable” c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 129
狂晕倒中 看不懂
遂将Default.aspx.cs内的
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
改为
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="zhi._Default" %>又错
错误 1 命名空间“<global namespace>”已经包含了“zhi”的定义 C:\Users\1\Documents\Visual Studio 2005\WebSites\WebSite2\Default.aspx.cs 11 22 C:\...\WebSite2\
狂吐血中
实在没办法 入门就被雷到 哪位大哥点拨一下 不胜感激
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 zhi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
shuchu();
}
public void shuchu()
{
string str1 = "你好";
string str2 = "你好啊";
string str = str1 + str2;
Response.Write(str);
}
}然后调试 出错
错误 1 “ASP.default_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写 c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 296
错误 2 “ASP.default_aspx.ProcessRequest(System.Web.HttpContext)”: 没有找到适合的方法来重写 c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 301 错误 3 “ASP.default_aspx”不会实现接口成员“System.Web.IHttpHandler.IsReusable” c:\Users\1\AppData\Local\Temp\Temporary ASP.NET Files\website2\110b7e72\3289e021\App_Web_yo0n_0ff.0.cs 129
狂晕倒中 看不懂
遂将Default.aspx.cs内的
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
改为
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="zhi._Default" %>又错
错误 1 命名空间“<global namespace>”已经包含了“zhi”的定义 C:\Users\1\Documents\Visual Studio 2005\WebSites\WebSite2\Default.aspx.cs 11 22 C:\...\WebSite2\
狂吐血中
实在没办法 入门就被雷到 哪位大哥点拨一下 不胜感激
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货