No definition for SelectedIndexChanged
No3Mc opened this issue · comments
Describe the bug
Error in OnSelectedIndexChanged="lstStocks_SelectedIndexChanged".
To Reproduce
Steps to reproduce the behavior:
- Add list box '<asp:ListBox ID="lstStocks" runat="server" Height="300px" OnSelectedIndexChanged="lstStocks_SelectedIndexChanged" Width="517px"></asp:ListBox>'
- Run application 'The error will be shown and the application won't be able to run'
- See error
Removing OnSelectedIndexChanged="lstStocks_SelectedIndexChanged will fix the error but won't function
Expected behavior
There shouldn't be any error.
Additional context
Severity Code Description Project File Line Suppression State
Error 'ASP.stock_astock_aspx' does not contain a definition for 'lstStocks_SelectedIndexChanged' and no extension method 'lstStocks_SelectedIndexChanged' accepting a first argument of type 'ASP.stock_astock_aspx' could be found (are you missing a using directive or an assembly reference?) C:\Users\Desktop\Project Management and Development\PSS\Phone Selling System\PSSFrontOffice\Stock\AStock.aspx 72