protected void gvCartView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Remove") { int ProductId = Convert.ToInt32(e.CommandArgument); ShoppingCart.Instance.RemoveItem(ProductId); } }
try parse
CommandArgument
RowIndex
RowCommand
GridView
CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)