protected void btnAddNewCourse_Click(object sender, EventArgs e)
    {
        string courseInfo = getCourseInfo();

        try
        {
            log.SectionsId = Int32.Parse(Request.QueryString["SectionsID"]);
        }
        catch
        {
            log.SectionsId = 0;
        }
        log.SubmittedBy   = Session["deltaid"].ToString();
        log.DepartmentsId = SectionDetails1.GetDepartmentsID();
        log.Change        = getCourseInfo();
        log.AddRecord();

        // section.DeleteRecord();
        // this.mvSubmissionForm.ActiveViewIndex = 1;
        List <ClsChangeLog> logs = new List <ClsChangeLog>();

        logs.Add(log);
        gvPendingChanges.DataSource = logs;
        gvPendingChanges.DataBind();

        using (MasterScheduleDataContext db = new MasterScheduleDataContext())
        {
            foreach (string sLocation in hidRooms.Value.TrimEnd(",".ToCharArray()).Split(",".ToCharArray()).ToList().Distinct())
            {
                SendMessageOnLogApproval thisItem = new SendMessageOnLogApproval();

                thisItem.LogID       = log.LogId;
                thisItem.CampusID    = sLocation;
                thisItem.DateCreated = DateTime.Now;
                db.SendMessageOnLogApprovals.InsertOnSubmit(thisItem);
            }

            db.SubmitChanges();
        }

        DivChairEmail = Helpers.GetDivisionEmailByDepartmentsId(log.DepartmentsId, Session["deltaid"].ToString());
        /* Send email upon submission */
        sendNotification(Session["deltaid"].ToString());

        Response.Redirect("~/RequestSubmitted.aspx");
    }