Пример #1
0
        private void dlstSearchProducts_DeleteCommand(object source, DataListCommandEventArgs e)
        {
            int relatedProductId = int.Parse(this.dlstSearchProducts.DataKeys[e.Item.ItemIndex].ToString(), NumberStyles.None);

            SubSiteProducthelper.RemoveRelatedProduct(this.productId, relatedProductId);
            base.Response.Redirect(HttpContext.Current.Request.Url.ToString(), true);
        }