[RESOLVED] [2005]changing the ID of a control doesn t reflect the changes in code behind
does this happen to u sometimes:
After u change the ID of a server control in the aspx view from let's say: "ControlId" to "NewControlId", then and u change the ID in all the code behind to take into consideration the new ID value, when we builde, those changes sometimes don t reflect during the build, and we get the error for example:
Name 'NewControlId' is not declared.
or something like that
any idea pls?
It happens a lot for example with AjaxToolKitControls may be with regular controls as well
Re: [2005]changing the ID of a control doesn t reflect the changes in code behind
Sometimes it takes Visual Studio a while to 'catch up' to the changes you made. Do the build errors go away after a while or do you have to manually edit it in the designer.cs?
Re: [2005]changing the ID of a control doesn t reflect the changes in code behind
Quote:
Originally Posted by mendhak
Sometimes it takes Visual Studio a while to 'catch up' to the changes you made. Do the build errors go away after a while or do you have to manually edit it in the designer.cs?
I never thought about changing designer.cs, but I think I usually don t give it enough time may be. I ll give it enought time, next time i ll give u the exact code if u don t mind.
Thnx
Re: [2005]changing the ID of a control doesn t reflect the changes in code behind
Do the build errors go away after a while or not?
Re: [2005]changing the ID of a control doesn t reflect the changes in code behind
i ll check next time I SUFFER from that pb :)
Re: [2005]changing the ID of a control doesn t reflect the changes in code behind
Then hopefully you won't be visiting this thread again. Good luck.