protected void GetExamiBadge() { BEStudent objBEStudent = new BEStudent(); BStudent objBStudent = new BStudent(); objBEStudent.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBStudent.BGetExamiBadge(objBEStudent); if (objBEStudent.StrResult == "NOBADGE") { DivExamiBADGE.Visible = false; divInfo.Visible = true; } else { DivExamiBADGE.Visible = true; divInfo.Visible = false; divBadge.Attributes.Add("class", objBEStudent.StrResult); int Count = objBEStudent.IntResult; if (Count == 0) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams0.ToString(); } else if (Count == 1) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams1.ToString(); } else if (Count == 2) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams2.ToString(); } else if (Count == 3) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams3.ToString(); } else if (Count == 4) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams4.ToString(); } else if (Count == 5) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams5.ToString(); } else if (Count == 6) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams6.ToString(); } else if (Count == 7) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams7.ToString(); } else if (Count == 8) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams8.ToString(); } else if (Count == 9) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams9.ToString(); } else if (Count >= 10) { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams10.ToString(); } else { lblExamsleft.Text = Resources.ResMessages.MYProfile_Exams0.ToString(); } } }