A
Ant
Hi,
I am using a sqlCommand object to run a SP. The SP returns an output
parameter that I retrieve the value of, & display.
I want to use the StatementCompleted event of the command obj. to handle
this output param through the sender object after the command completes.
When I try to access this sender object (cast to a command object) & then
reference the output parm, I get an error:
"Object reference not set to an object"
indicating that the command object has probably lost its reference in the
post back.
How can I handle an event over a Postback?
Many thanks for any help on this. I'm really stuck
Ant
I am using a sqlCommand object to run a SP. The SP returns an output
parameter that I retrieve the value of, & display.
I want to use the StatementCompleted event of the command obj. to handle
this output param through the sender object after the command completes.
When I try to access this sender object (cast to a command object) & then
reference the output parm, I get an error:
"Object reference not set to an object"
indicating that the command object has probably lost its reference in the
post back.
How can I handle an event over a Postback?
Many thanks for any help on this. I'm really stuck
Ant