protected void Page_Load(object sender, EventArgs e)
        {
            if (IsLoggedIn)
            {
                if (!IsPostBack)
                {
                    /*Take data from result object (BL)*/
                    gvSearchResults.DataSource = null;
                    /* Combine the data I give you with the screen in its correct place */
                    gvSearchResults.DataBind();

                    anpTopPaging.AlwaysShow  = anpBottomPaging.AlwaysShow = true;
                    gvSearchResults.PageSize = anpTopPaging.PageSize = anpBottomPaging.PageSize = BL.Common.Models.Constants.DEFAULT_RESULTS_PAGE_SIZE;

                    ceRequestedSessionDate.StartDate = DateTime.Today.AddDays(BL.Common.Models.Constants.MIN_NUM_DAYS_REQUEST_SESSION);

                    //Get parameters from URL named 'q'
                    string query;
                    query = Request.QueryString.Get("q");
                    if (!string.IsNullOrEmpty(query))
                    {
                        txtSearchQuery.Text = query;

                        //Apply the logic of search
                        Search(query);
                    }

                    //Load all request statuses from backend
                    Result <List <string> > result = sms.GetAllPossibleStatuses();
                    if (result.isSuccess)
                    {
                        ddlStatus.DataSource = result.resultObject;
                        ddlStatus.DataBind();
                    }
                }

                ICourseManagementService crsems        = new CourseManagementService();
                Result <List <Course> >  serviceResult = null;
                serviceResult = crsems.GetOfferedCourses();
                /*To display list of courses in dropdown menu*/
                if (serviceResult.isSuccess)
                {
                    /*Data Source: Collection list*/
                    ddlCourses.DataSource     = serviceResult.resultObject;
                    ddlCourses.DataValueField = "ID";
                    ddlCourses.DataTextField  = "CourseName";
                    ddlCourses.DataBind();
                    ddlCourses.SelectedIndex = -1;
                }
            }
        }