Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Codebehind loses links to web controls

It's now happened to me a couple of times. I'm using ASP.net2003

Links to the related codebehind files are lost for certain controls. The programs still compile. However, it doesn't execute the logic on the existing control events. Unfortunately, this seems to usually happen to datagrids.

I'd love to know what causes this, and how to keep it from happening, or fix it once it does happen.

So far, I have to have the codebehind manager re-create the event subroutines it can't see, then copy the logic from the non-recognized routines to the newly created routines, remove the old, and rename the new to the old names.

Thanks,
Randy
[702 byte] By [blackbr] at [2007-11-11 10:15:31]
# 1 Re: Codebehind loses links to web controls
What kind of controls are they ?
jedicoder at 2007-11-11 23:12:07 >
# 2 Re: Codebehind loses links to web controls
I know it happens with datagrids. I think it also happened with a dropdownlist
blackbr at 2007-11-11 23:13:01 >