Hello,
hope you can give me a hint on the following …
Two buttons on a form. When pressed, they “do” different things but both also call the same method.
The method has an “if” construct to execute either and INSERT or an UPDATE sql statement.
The method should detect which button pressed event did call the method.
I guess I could add a parameter to the method and pass an argument to the method call to identify the button, but I just wonder if once can detect the control that triggered an event.
Thanks in advance!
6 posts - 5 participants