求问一个问题
错误 1
“HelloWorld.Page_Load(object, System.EventArgs)”必须声明主体,因为它未标记为 abstract、extern 或 partial C:\inetpub\wwwroot\WebSite05\HelloWorld.aspx.cs
10 20
http://localhost/WebSite05/
求问,这个是哪里需要改?附上代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class HelloWorld : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public void ShowLineage()
{
Response.Write("Check out the family tree:<br/><br/>");
Response.Write(this.GetType().ToString());
Response.Write("which derives from:<br/>");
Response.Write(this.GetType().BaseType.ToString());
Response.Write("which derives from:<br/>");
Response.Write(this.GetType().BaseType.BaseType.ToString());
Response.Write("which derives from:<br/>");
Response.Write(this.GetType().BaseType.BaseType.BaseType.ToString());
Response.Write("which derives from:<br/>");
Response.Write(this.GetType().BaseType.BaseType.BaseType.BaseType.ToString());
}
}