1

これは、F5 を押すと得られるものです.... 何かアイデアはありますか? ここで何が問題なのかまったくわかりません。

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 9:  
Line 10: 
Line 11: public partial class _Default : System.Web.UI.Page
Line 12: {
Line 13:     protected void Page_Load(object sender, EventArgs e)

 <%@ Page Language="C#"  AutoEventWireup="true" 
     CodeFile="Default.aspx.cs" Inherits="Default" %>
4

1 に答える 1

2

Ok、<%@ Page ... Inherits="Default" %>

と一致しませんclass _Default

最初の行をに変更します<%@ Page ... Inherits="_Default" %>

于 2012-09-18T20:33:16.640 に答える