我正在尝试运行我的应用程序,它给了我错误:
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).
请告诉我在此标记中使用此inherits参数?
答案 0 :(得分:0)
看起来您缺少CodeFileBaseClass属性,该属性应该指向您的基类。
<%@ Page language="c#" Inherits="University.AspNet.Index" CodeFile="Index.aspx.cs" CodeFileBaseClass="XXXXXX" %>