/// <summary> /// Product highlights row command event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void uxGridHighlights_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Page") { } else { if (e.CommandName == "Delete") //Delete button is triggered { ZNode.Libraries.Admin.ProductAdmin productAdmin = new ProductAdmin(); bool Status = productAdmin.DeleteProductHighlight(int.Parse(e.CommandArgument.ToString())); BindProductHighlights(); } else if (e.CommandName == "Edit") { Response.Redirect(EditHighlightPageLink + e.CommandArgument + "&productid=" + ItemId); } } }