Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delegate Hooks are getting erased
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01037879
Message ID:
01038626
Vues:
16
Eric;

Are you using an Application error handler to log errors? That might be of some help. How about debug mode? Will that work in this case?

Tom



>Sorry, that would be SelectedIndexChanged event. The equivalent of InteractiveChange in VFP.
>
>I put my hooks in InitializeComponent() of the page. Sometimes when the page has been edited in some way, the hooks I have added get erased and only the default hooks remain like the page_load hook. I have no way of knowing that this happened until the end user reports a bug.
>
>What is surprizing is that the event handler code is still there, just no hook.
>
>-E
>
>
>
>>>I have a number of hooks where I attach a delegate event handler to controls that exist on a user control. For example I might have an event handler on a page that is supposed to react to an interactivechange event in a cbo contained in a user control.
>>>
>>>Well, occasionally the event delegate hook gets erased! This completely breaks my web site and makes me look like an idiot. Why would .NET erase a delegate hook? This core to the event model.
>>
>>Hi Eric,
>>
>>Not to nitpick, but there are no InteractiveChange events on web controls. Is this a UserControl that you have created with a custom InteractiveChange event?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform