Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delegate Hooks are getting erased
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01037879
Message ID:
01038626
Views:
15
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform