/* * Pre: * Post: If the current user is a teacher, the teacher dropdown * should only show the current user */ private void loadTeacherDropdown() { if (HighestPermissionTeacher()) { User user = (User)Session[Utility.userRole]; Contact contact = DbInterfaceContact.GetContact(user.contactId); if (contact != null) { ddlTeacher.Items.Add(new ListItem(contact.lastName + ", " + contact.firstName, user.contactId.ToString())); } } }