protected void DraftButton_Click(object sender, EventArgs e) { Page.Validate("draft"); if (Page.IsValid) { Table2.Visible = false; // Report has been validated and ready to persist to the database. irpb = new Director().ReloadBuilder(Profile.Role); irpb.DraftReport(this); // Clear the profile. Profile.IncidentReportID = ""; Profile.DropZoneID = ""; Response.Redirect("Admin_Home.aspx"); } else { // Else they'll stay on the page and have to fix their errors. ValidationSummary_Incident_Report_Submission.HeaderText = ""; ValidationSummary_Incident_Report.HeaderText = "<b>Oops! Error(s) have been sighted:</b>"; Table2.Visible = true; } }