【发布时间】:2010-08-10 09:57:51
【问题描述】:
在我的页面上我有:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="siteSettings.aspx.cs" Inherits="APack.admin.siteSettings" %>
<!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>
</div>
</form>
</body>
</html>
我的代码是:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace APack.admin
{
public partial class siteSettings : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
抛出异常:
Parser Error Message: Could not load type 'APack.admin.siteSettings'.
这是刚刚在Visual Studio中生成的,右键->新建文件。它只是不起作用:(有什么想法吗?
【问题讨论】: