protected void btnAdd_Click(object sender, EventArgs e)
        {
            BECourseAdmin objBECourseAdmin = new BECourseAdmin();
            BCourseAdmin  objBCourseAdmin  = new BCourseAdmin();

            objBECourseAdmin.strFirstName = txtFirstName.Text;
            lblFirstName.Text             = txtFirstName.Text;
            objBECourseAdmin.strLastName  = txtLastName.Text;
            lblLastName.Text = txtLastName.Text;
            objBECourseAdmin.strEmailAddress = txtEmailAddress.Text;
            lblEmailAddress.Text             = txtEmailAddress.Text;
            objBECourseAdmin.StrComments     = txtcomments.Value;
            lblComments.Text               = txtcomments.Value;
            lblNewCourse.Text              = rcbNewCourses.SelectedItem.Text.ToString();
            objBECourseAdmin.IntCourseID   = Convert.ToInt32(rcbNewCourses.SelectedValue);
            objBECourseAdmin.IntProviderID = Convert.ToInt32(ddlprovider1.SelectedValue);
            objBECourseAdmin.strPassword   = GetRandomPassword(Length);

            objBECourseAdmin.strUserName = txtUserID.Text;
            lblUserName.Text             = txtUserID.Text;
            trMessage.Visible            = true;
            if (ChkSpecialNeeds.Checked == true)
            {
                objBECourseAdmin.strSpecialNeeds = true;
                lblSpecialNeeds.Text             = "Yes";
            }
            else
            {
                objBECourseAdmin.strSpecialNeeds = false;
                lblSpecialNeeds.Text             = "No";
            }
            objBCourseAdmin.BAddStudent(objBECourseAdmin);
            if (objBECourseAdmin.IntResult == 0)
            {
                lblInfo.Text      = Resources.AppMessages.Provider_AddStudent_Error_AddStudent;
                lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error);
                ImgInfo.ImageUrl  = Resources.AppConfigurations.Image_Error;
                tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Error);
                trAddStudent.Visible                = true;
                trAddStudentConfirm.Visible         = false;
                trEnrollStudent.Visible             = false;
                trEnrollStudentConfirmation.Visible = false;
            }

            if (objBECourseAdmin.IntResult == 1)
            {
                lblInfo.Text      = Resources.AppMessages.Provider_AddStudent_Success_AddStudent;
                lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Success);
                ImgInfo.ImageUrl  = Resources.AppConfigurations.Image_Success;
                tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Success);
                trAddStudent.Visible                = false;
                trAddStudentConfirm.Visible         = true;
                trEnrollStudent.Visible             = false;
                trEnrollStudentConfirmation.Visible = false;
            }
        }