General information
Title:
Determine which button was clicked
I have a webform with a gridview that has 4 columns. Two of the columns are "ButtonField". One button is for Edit, one is button is for Delete. Both buttons's "CommandName" contains "SELECT". The SelectedIndexChanged of the grid points to "MyMethod()".
When I run the form and click on either button, "MyMethod()" gets control, but how can I tell which button was pressed, the Edit or the Delete?
Or is there a better way to do this?
Thanks,
Jerry
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only