2009-04-26 7 views
0
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

しかし、このエラーが発生しています...それらを一致させるようにしてみましたが、それは何と思われますか?誰かが私のクラスヘッダーの問題点を教えてもらえますか?

Server Error in '/' Application. 
    Compilation Error 
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

    Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). 

    Source Error: 

    Line 14: namespace FlashCards 
    Line 15: { 
    Line 16:  public partial class _Default : System.Web.UI.Page 
    Line 17:  { 
    Line 18:   protected int indexKey = 0; 


    Source File: c:\Users\Ryan\documents\visual studio 2008\websites\flashcards\Default.aspx.cs Line: 16 

答えて

5

継承にはクラスのフルネームが必要なため、名前空間も含める必要があります。交換を試みてください

Inherits="_Default" 
with 
Inherits="FlashCards._Default" 
+0

優秀な回答+1 –

+0

ありがとう – BigOmega

関連する問題