Author: clarkrb | Posted on: 7/30/2008 10:15:12 AM | Views : 482

I've run into this problem a lot with both VS2005 and 2008 and am wondering if it's something I'm doing wrong or a bug. I'm always in code view and sometimes when I add a new server control and then open the code-behind to write code that references it, it doesn't appear in Intellisense. If I write by code anyways and try to compile, I get a "The name 'myControl' does not exist in the current context". This is because the designer file did not get updated with the control.
90% the designer file does get updated, but for that other 10% it is really, really frustrating. I try deleting the line of code in the aspx page and retype the server control tags and sometimes that works and sometimes it still doesn't. I haven't been able to figure out what factor determines whether it will or won't work. I've tried typing really slow and sometimes that helps.
I've also seen this when I copy code from another aspx page. When I ...

Go to the complete details ...