Visual Studio 2005 ASP.net new control on page does not register in code behind. 1.1 upgrade to 2.0
Posted on 2008-10-09
I have started working at a new place...
They have upgraded their code from 1.1 to 2.0.
We are using Visual Studio 2005.
When I add a new control to a webpage, I double click on it to start codeing an event. The code shows up, but the handles statement already shows an error like it doesn't know about this control. I have tried saving, compiling etc....
My current work around is to add the control withevents to the top of the file, but I don't want to have to do this for every control I add.
Is there a way to fix this. I have about 30 pages or more to work with.