protected void updateReport(object sender, EventArgs e) { if (Page.IsValid) { BugClass bc = new BugClass(); bc.bugID = Int32.Parse(id); if (ddlStatus.SelectedValue == "Assigned") { if (ddlPriority.SelectedValue != "" && ddlAssignee.SelectedValue != "") { bc.priority = ddlPriority.SelectedValue; bc.assignee = ddlAssignee.SelectedValue; if (bc.assignBug() == 0) { Label3.Text = "Bug assigned successfully!"; } else { Label3.Text = "There seem to be a problem changing the status of this bug report."; } } else { Label3.Text = "You need to select both a priority and an assignee!"; } } else if (ddlStatus.SelectedValue == "Closed") { if (bc.closeBugReport() == 0) { Label3.Text = "Bug report closed successfully!"; } else { Label3.Text = "There seem to be a problem changing the status of this bug report."; } } else { if (bc.rejectBug() == 0) { Label3.Text = "Bug report has been rejected!"; } else { Label3.Text = "There seem to be a problem changing the status of this bug report."; } } displayBugs(); } }