protected void btnVitalAdd_Click(object sender, System.EventArgs e) { if (Session["PatientID"] != null) { Page.Validate("Vitals"); if (Page.IsValid) { DataTool dbTool = new DataTool(); dbTool.newVitals(Int32.Parse(Session["PatientID"].ToString()), Time.Text, BloodPressure.Text.ToString().Replace("'", "''"), Pulse.Text.ToString().Replace("'", "''"), Resp.Text.ToString().Replace("'", "''"), Temp.Text.ToString().Replace("'", "''"), TraumaScore.Text.ToString().Replace("'", "''")); // refresh the lists setupGrid(); } else { ValidationSummary1.ValidationGroup = "Vitals"; setupGrid(); } } else { Server.Transfer("SessionTimedOut.aspx"); } } // Done...Tested