/// <summary>
        /// Get the GridView List of the courses details using the query string
        /// </summary>
        private void GridView_CourseList()
        {
            try
            {
                WebSim.DTO.CourseID dtoCourse = new WebSim.DTO.CourseID();
                WebSim.Business.CourseBusiness courseBuiCourse = new WebSim.Business.CourseBusiness();

                dtoCourse.courseid = queryString;

                IList<WebSim.DTO.CourseDetail> courseDetails = courseBuiCourse.GetCourseDetail(dtoCourse);

                GridViewCourseDetail.DataSource = courseDetails;
                GridViewCourseDetail.DataBind();
                //TODO: move the UI strings to resource file.
                //Why??
                GridViewCourseDetail.HeaderRow.Cells[1].Text = "Course Name";
                GridViewCourseDetail.HeaderRow.Cells[2].Text = "Course Description";
                GridViewCourseDetail.HeaderRow.Cells[0].Visible = false;
            }
            catch (NullReferenceException)
            {
                lblMessageGridView.Text = "Invalid course.";
            }
        }
        /// <summary>
        /// Get the list of all the course
        /// </summary>
        private void CourseList()
        {
            WebSim.Business.CourseBusiness courseNameList = new WebSim.Business.CourseBusiness();

            IList<WebSim.DTO.CourseNameAndId> courseDTO = courseNameList.GetCourseName();

            // Add the coursename to the dropdownlist
            DropDownListCourse.DataSource = courseDTO;
            DropDownListCourse.DataBind();

            // Add the coursename to the gridview
            GridViewDashboard.DataSource = courseDTO;
            GridViewDashboard.DataBind();

            // Renaming the header and hiding the course id column

            if (User.IsInRole("STUDENT"))
            {
                GridViewDashboard.HeaderRow.Cells[2].Text = "Course Name";
                GridViewDashboard.HeaderRow.Cells[1].Visible = false;
            }
            else
            {
                GridViewDashboard.HeaderRow.Cells[3].Text = "Course Name";
                GridViewDashboard.HeaderRow.Cells[2].Visible = false;
            }
        }