Losing event handlers

  • Thread starter Thread starter Matt Sogla
  • Start date Start date
M

Matt Sogla

I have written an ASP.NET app with C# code-behind. While modifying
the code and testing it, I find that I will sometimes lose all event
handlers on the page(SortCommand, PageIndexChanged, Load, and
ItemCommand). There doesn't seem to be a pattern. Sometimes I make
no changes at all and when I run the app, nothing happens because the
eventhandlers are gone. Does anyone know what is going on here???

Also, when I say I am losing the event handlers, sometimes they do not
appear in the code-behind, sometimes they are missing from the
properties window in design mode, and sometimes they are missing from
both.

Can anyone give some insite on this problem?

Thanks.
 
No,
it's a bug. i don't think it is documented either. If you are using source
safe it is more likely to happen. there was a patch for this sometime ago.
 
Back
Top