D
DC
Hi,
I would like to reuse a webcontrol in several places and when a
certain action is being executed in the webcontrol, a defineable
method should run. That method of course is defined in an event in the
webcontrol:
public event CommandEventHandler MyCallBack;
Now in the hosting control I can do stuff like
myCallBack += this.MyCallbackHandler;
and that will work for that one request, but I have to specify
MyCallbackHandler at every roundtrip. Is it possible to store this
information somehow? I played around with ViewState, but I found out
that a CommandEventHandler cannot be serialized. Am I missing a design
rule?
TIA,
DC
I would like to reuse a webcontrol in several places and when a
certain action is being executed in the webcontrol, a defineable
method should run. That method of course is defined in an event in the
webcontrol:
public event CommandEventHandler MyCallBack;
Now in the hosting control I can do stuff like
myCallBack += this.MyCallbackHandler;
and that will work for that one request, but I have to specify
MyCallbackHandler at every roundtrip. Is it possible to store this
information somehow? I played around with ViewState, but I found out
that a CommandEventHandler cannot be serialized. Am I missing a design
rule?
TIA,
DC