ActivEarth.Groups.EditGroup.DeleteGroup C# (CSharp) Method

DeleteGroup() protected method

Method called when the Delete Group Button is clicked. Removes the Group from the Database and Redirects the user back to the Groups page.
protected DeleteGroup ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        protected void DeleteGroup(object sender, EventArgs e)
        {
            int groupID = Convert.ToInt32(Request.QueryString["ID"]);
            GroupDAO.DeleteGroup(groupID);
            Response.Redirect("~/Groups/Groups.aspx");
        }