protected void grid_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "DeleteOrderByRequest") { OrderByRequestService.DeleteOrderByRequest(SQLDataHelper.GetInt(e.CommandArgument)); } }
protected void grid_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "DeleteOrderByRequest") { OrderByRequestService.DeleteOrderByRequest(Convert.ToInt32(e.CommandArgument)); } }
protected void lbDeleteSelected_Click(object sender, EventArgs e) { if ((_selectionFilter != null) && (_selectionFilter.Values != null)) { if (!_inverseSelection) { foreach (string id in _selectionFilter.Values) { OrderByRequestService.DeleteOrderByRequest(SQLDataHelper.GetInt(id)); } } else { foreach (int id in OrderByRequestService.GetIdList().Where(id => !_selectionFilter.Values.Contains(id.ToString(CultureInfo.InvariantCulture)))) { OrderByRequestService.DeleteOrderByRequest(id); } } } }
protected void btnDeleteOrder_Click(object sender, EventArgs e) { OrderByRequestService.DeleteOrderByRequest(OrderByRequestId); Response.Redirect("OrderByRequest.aspx"); }