protected void GetStudentDetails() { BECourseAdmin objBECourseAdmin = new BECourseAdmin(); BCourseAdmin objBCourseAdmin = new BCourseAdmin(); objBECourseAdmin.IntStudentID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["StudentID"].ToString())); objBCourseAdmin.BGetStudentDetails(objBECourseAdmin); if (objBECourseAdmin.DtResult != null) { if (objBECourseAdmin.DtResult.Rows.Count > 0) { lblstudentfirstname.Text = objBECourseAdmin.DtResult.Rows[0]["studentName"].ToString(); lblEmail.Text = objBECourseAdmin.DtResult.Rows[0]["EmailAddress"].ToString(); lblPhoneNumber.Text = CommonFunctions.CheckNullValue(objBECourseAdmin.DtResult.Rows[0]["PhoneNumber"].ToString()); lblTimeZone.Text = objBECourseAdmin.DtResult.Rows[0]["TimeZone"].ToString(); lblSpecialNeeds.Text = objBECourseAdmin.DtResult.Rows[0]["SpecialNeeds"].ToString(); string imgpath = objBECourseAdmin.DtResult.Rows[0]["PhotoIdentity"].ToString(); if (imgpath != "") { //imgstudent.ImageUrl = "~/Student/Student_Identity/" + imgpath.Substring(3).ToString(); imgstudent.ImageUrl = new AppSecurity().ImageToBase64(imgpath.Substring(3).ToString()); } if (objBECourseAdmin.DtResult.Rows[0]["Comments"] != DBNull.Value && objBECourseAdmin.DtResult.Rows[0]["Comments"].ToString() != string.Empty) { lblComments.Text = objBECourseAdmin.DtResult.Rows[0]["Comments"].ToString(); } else { lblComments.Text = "N/A"; } } } }