protected void On_DeleteProducts(object sender, GridViewDeleteEventArgs e) { int ID = Convert.ToInt32(Grid_Product.DataKeys[e.RowIndex].Value.ToString()); if (ToolsAdmin.Delete_Product(ID)) { DIV_AddEditProduct.Visible = false; if (Convert.ToInt32(HD_Select_CategoryID.Value) == 0) { Load_Grid_Products(); } else { Load_SearchProduct_ByCategory(); } } else { WebMsgBox.Show("Error Delete"); } }