Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine which button was clicked
Message
From
05/03/2007 14:08:30
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Determine which button was clicked
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01200831
Message ID:
01200831
Views:
78
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
Map
View

Click here to load this message in the networking platform