P
Phil
I understand using the 'sender' object allows you to right a single function
to handle multiple events, but in the instance that you are righting a
function for a single event does it buy you anything?
For instance (as is my case...), when handling a FormView PreRender event,
is it better to reference the FormView control ('FormView1') as
this.FormView1, or (FormView)sender, in my function if I'm handling only one
event?
I've been using the sender object most of the time, but I wonder if I'm just
making it more complicated than need be.
Thanks.
to handle multiple events, but in the instance that you are righting a
function for a single event does it buy you anything?
For instance (as is my case...), when handling a FormView PreRender event,
is it better to reference the FormView control ('FormView1') as
this.FormView1, or (FormView)sender, in my function if I'm handling only one
event?
I've been using the sender object most of the time, but I wonder if I'm just
making it more complicated than need be.
Thanks.