Exemplo n.º 1
0
        private void dlstSearchProducts_DeleteCommand(object source, DataListCommandEventArgs e)
        {
            int productId = int.Parse(dlstSearchProducts.DataKeys[e.Item.ItemIndex].ToString(), NumberStyles.None);

            if (SubSiteProducthelper.RemoveSubjectProduct(subjectType, productId))
            {
                BindSubjectProducts();
            }
        }