Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delegate Hooks are getting erased
Message
 
To
03/08/2005 13:30:57
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01037879
Message ID:
01038573
Views:
18
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?
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform