Getting error “Server Error in '/' Application.” when I run the program

后端 未结 1 1462
时光说笑
时光说笑 2021-01-29 06:30

I have received an error message when I run my program. I feel this is a common type of error. Can you explain this error in simple terms.

Compilation Error
Desc         


        
相关标签:
1条回答
  • 2021-01-29 07:07

    According to the error message, in your front page (c:\Users\Jithma Senarathne\Desktop\fiverr\asp.net\Project\Cinema Website\Cinema Website\Cinema Website\SearchByGenre.aspx), you may have a dropdownlist (named ddlGenre) which is bound the OnSelectedIndexChanged event ddlGenre_SelectedIndexChanged, but there doesn't have the method in the code behind in the SearchByGenre.aspx.cs file. What you should do is:

    1. either remove the event binding code in front page SearchByGenre.aspx line 8: AutoPostBack="True" OnSelectedIndexChanged="ddlGenre_SelectedIndexChanged",

    2. or add the event method at code behind in the SearchByGenre.aspx.cs file.

    0 讨论(0)
提交回复
热议问题