private void dgGroupsUsers_Delete(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int GID = int.Parse(e.Item.Cells[0].Text); string Type = e.Item.Cells[1].Text; if (Type == "Group") { SecureGroup.Delete(GID); } }
protected void DeleteGroup(object sender, System.EventArgs e) { SecureGroup.Delete(GroupID); pc["SecureGroup_CurrentGroup"] = "1"; Response.Redirect("~/Directory/Directory.aspx?Tab=0&SGroupID=1"); }