private void dg_delete(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int RelIssId = int.Parse(e.Item.Cells[0].Text); Issue2.DeleteRelation(IncidentId, RelIssId); Response.Redirect("../Incidents/IncidentView.aspx?IncidentId=" + IncidentId); }