dharmendr says:
There is no difference in the C# coding in website and Projects.
Why am I having errors in the server side code?
The error says "the name does not exist in the current context" but I have the names in the client side. Those are the names of Label controls, Image controls and even my gridview control.
All I did was create a new project in Visual Studio 2022, and copied some folders and aspx and aspx.cs files (webforms) from Visual Studio 2015 into the new project in Visual Studio 2022. I did not copy packages.config file, Web.config file and App_Data folder
Here is the error in the link below
https://imgur.com/gallery/fv3L4J9
This link really shows the errors which are much
https://imgur.com/gallery/qZaECle