任何人都可以幫我理清這個錯誤嗎?我的代碼不想繼承,因爲你可以在錯誤中看到。我使用的名稱空間是WebChat,它在兩個文件中使用,所以我不知道錯誤在哪裏。請確保此代碼文件中定義的類與'inherits'屬性匹配
userchathomepage.aspx:
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="userchathomepage.aspx.cs" Inherits="userchathomepage" %>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WebChat
{
/// <summary>
/// Summary description for userchathomepage.
/// </summary>
public class userchathomepage : System.Web.UI.Page
{
類外商投資企業:Chat.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
namespace WebChat.PageModule
{/// <summary>
/// Summary description for Chat
/// </summary>
public class Chat
{
<%@ Page Language =「C#」AutoEventWireup =「false」CodeFile =「userchathomepage.aspx.cs」Inherits =「WebChat._userchathomepage」%> –