ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008

前端 未结 16 1393
面向向阳花
面向向阳花 2020-12-25 12:28

Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can\'t

16条回答
  •  旧时难觅i
    2020-12-25 12:35

    In my case new asp controls I added to an existing were not being detected.

    What worked for me was forcing a recompile by renaming an existing control to break the build eg: changing to

    When I corrected the ID and rebuilt a new designer file was generated with the corrected ID and new controls.

提交回复
热议问题