protected void GetStudentDetails() { BEAdmin objBEAdmin = new BEAdmin(); BAdmin objBAdmin = new BAdmin(); objBEAdmin.IntStudentID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["StudentID"].ToString())); objBAdmin.BGetStudentDetails(objBEAdmin); if (objBEAdmin.DtResult != null) { if (objBEAdmin.DtResult.Rows.Count > 0) { lblstudentfirstname.Text = objBEAdmin.DtResult.Rows[0]["studentName"].ToString(); lblEmail.Text = objBEAdmin.DtResult.Rows[0]["EmailAddress"].ToString(); lblPhoneNumber.Text = CommonFunctions.CheckNullValue(objBEAdmin.DtResult.Rows[0]["PhoneNumber"].ToString()); lblTimeZone.Text = objBEAdmin.DtResult.Rows[0]["TimeZone"].ToString(); lblSpecialNeeds.Text = objBEAdmin.DtResult.Rows[0]["SpecialNeeds"].ToString(); string imgpath = objBEAdmin.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 (imgpath == string.Empty) // imgstudent.ImageUrl = Server.MapPath("../Images/ImgNoImage.jpg"); //else if (System.IO.File.Exists("../Uploads/StudentIdentity/" + imgpath.ToString())) // imgstudent.ImageUrl = "../Uploads/StudentIdentity/" + imgpath.ToString(); //else // imgstudent.ImageUrl = Server.MapPath("../Images/ImgNoImage.jpg"); if (objBEAdmin.DtResult.Rows[0]["Comments"] != DBNull.Value && objBEAdmin.DtResult.Rows[0]["Comments"].ToString() != string.Empty) { lblComments.Text = objBEAdmin.DtResult.Rows[0]["Comments"].ToString(); } else { lblComments.Text = "N/A"; } } } }