Parser Error: '_Default' is not allowed here because it does not extend class 'System.Web.UI.Page' & MasterType declaration

后端 未结 10 1274
说谎
说谎 2020-12-09 07:22

I recently converted a website project to a web application project in Visual Studio 2008. I finally got it to compile, and the first page (the login screen) displayed as n

10条回答
  •  伪装坚强ぢ
    2020-12-09 08:06

    I had copied and renamed the page (aspx/cs). The page name was "mainpage" so the class name at the top of the cs file as follows:

    After renaming the class to match this error was resolved.

提交回复
热议问题