Losing event handlers

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.
 
A

Alvin Bruney

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top