protected void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                if (Page.IsValid)
                {
                    BECourseAdmin objBEAdmin = new BECourseAdmin();
                    BCourseAdmin  objBAdmin  = new BCourseAdmin();
                    objBEAdmin.IntStudentID = 0;//Convert.ToInt32(rcbStudent.SelectedValue);

                    DataTable objDt = new DataTable();
                    objDt.Columns.Add("StudentID");
                    string studentName = string.Empty;
                    foreach (RadComboBoxItem ChkStudent in rcbStudent.Items)
                    {
                        if (ChkStudent.Checked)
                        {
                            DataRow objDr = objDt.NewRow();
                            objDr["StudentID"] = ChkStudent.Value;
                            objDt.Rows.Add(objDr);
                            if (studentName == string.Empty)
                            {
                                studentName = ChkStudent.Text;
                            }
                            else
                            {
                                studentName = studentName + ',' + ' ' + ChkStudent.Text;
                            }
                        }
                    }
                    objDt.AcceptChanges();
                    objBEAdmin.DtResult1 = objDt;

                    objBEAdmin.IntUserID   = Convert.ToInt32(Request.QueryString["InstructorID"].ToString());
                    objBEAdmin.IntCourseID = Convert.ToInt32(Request.QueryString["Courseid"].ToString());
                    objBAdmin.BCourseAdminEnrollStudents(objBEAdmin);
                    trMessage.Visible = true;
                    if (objBEAdmin.IntResult.ToString() == "1")
                    {
                        lblInfo.Text      = Resources.AppMessages.Admin_Enrollment_Success_AddEnrollment;
                        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);
                        lblStudentnameConfirmation.Text = studentName;//rcbStudent.SelectedItem.Text;
                        trUpdate.Visible                    = false;
                        lblInstuctorNameConfirm.Text        = lblInstructor.Text;
                        lblCourseNameConfirm.Text           = lblCourse.Text;
                        trAddEnrollment.Visible             = false;
                        trAddEnrollmentConfirmation.Visible = true;
                    }
                    else
                    {
                        lblInfo.Text      = Resources.AppMessages.Admin_Enrollment_Error_AddEnrollment;
                        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);
                        trAddEnrollment.Visible             = true;
                        trAddEnrollmentConfirmation.Visible = false;
                    }
                }
            }
            catch
            {
            }
        }