None of my “code behind” code is being called

前端 未结 9 1932
予麋鹿
予麋鹿 2021-02-08 00:40

I have just created an ASP.NET C# project and a virtual directory for it in IIS in (as far as I know) the normal way, but I am seeing very strange behavior that I have never see

9条回答
  •  一个人的身影
    2021-02-08 01:13

    I suspect your Page declaration (<%@ Page ... %>) in the apsx file is wrong. Look at ClassName and CodeBehind attributes and make sure they match your .cs file.

提交回复
热议问题