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

前端 未结 16 1385
面向向阳花
面向向阳花 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 12:56

    try clearing your local VS cache. find your project and delete the folder. the folder is created by VS for what reason I honestly don't understand. but I've had several occasions where clearing it and doing a re-build fixes things... hope this is all that you need as well.

    here

    %Temp%\VWDWebCache
    

    and possibly here

    %LocalAppData%\Microsoft\WebsiteCache
    

提交回复
热议问题