Hi there,
I have write some code to attach a single event handler to multiple controls, at run time.
All works fine. The only issue is with persistence.
I originally had the code run when the page loaded, and only if it was not a postback. I expected to only have to do this once.
Unfortunately - not so. I have been forced to allow this code to run even if it is a postback situation - It seems to "forget" the event handlers for each control.
Any Ideas why?
Thanks for your help!
I have write some code to attach a single event handler to multiple controls, at run time.
All works fine. The only issue is with persistence.
I originally had the code run when the page loaded, and only if it was not a postback. I expected to only have to do this once.
Unfortunately - not so. I have been forced to allow this code to run even if it is a postback situation - It seems to "forget" the event handlers for each control.
Any Ideas why?
Thanks for your help!