C# code is not recognizing tools on aspx page VS2013

shahbaz ladak 1 Reputation point
2021-11-18T10:01:07.81+00:00

Hello everyone,

I received a set of code from my company, but there is project file, so I opened VS2013 and from File-> Open -> website. I got all aspx and C# codes in my project but the issue is that C# pages are not recognizing controls placed on main aspx form.150631-1.png150530-2.png150641-3.png

Please see attached files and provide some solution.

Thank you
Ladak

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. shahbaz ladak 1 Reputation point
    2021-11-18T11:22:54.463+00:00

    When I right click on 'default' page and select 'build page' option there is no error. All textboxes names shows normal, once I start editing on page, again is shows errors on all textboxes names.

    I have no idea what is going on...!
    Need urgent help

    Thank you!

    0 comments No comments

  2. AgaveJoe 26,201 Reputation points
    2021-11-18T12:19:48.187+00:00

    You opened the Visual Studio project as a web site when the project is a web application. In Visual Studio click File -> Open -> Project/Solution. Then navigate to the project or solution file.

    0 comments No comments

  3. Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
    2021-11-19T03:52:26.15+00:00

    Hi @shahbaz ladak ,
    You can try these two methods:

    1. Please right click on .designer.cs and select "include in project"
    2. Right-click the project and convert to a web application to solve it. This creates the necessary designer.cs file, which contains the code for the asp object on the aspx page.
      Maybe you can provide the code for the ASPX page.
      Best regards,
      Lan Huang

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments