the button in gridview row
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I have a gridveiw that there is a button in every row of it.I want to when I click the button ,the item that is in a this row add to my shoppingcart.what code should I write for my gridview.
-
I have a gridveiw that there is a button in every row of it.I want to when I click the button ,the item that is in a this row add to my shoppingcart.what code should I write for my gridview.
Write code for the click event of the button When you bind the gridview, bind the CommandArgument of the button to the ID of the product of the corresponding row In the code for the click event check the commandargument of the sender (the button) and do what you got to do to add the item to shopping cart
Alexei Rodriguez