protected void Page_Load(object sender, EventArgs e) { string loginID = Session["loginID"].ToString(); NotificationDAO nDAO = new NotificationDAO(); List <DeptNotification> nList = nDAO.getAllDeptNotificationByID(loginID); notice_Repeater.DataSource = nList; notice_Repeater.DataBind(); foreach (DeptNotification item in nList) { nDAO.setDeptNotificationStatusAsOld(item.notificationID); } }