Beispiel #1
0
 protected void OnMessageGridNeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     if (SessionManager.CurrentUser != null)
     {
         UserMessageRepository messageRepo = new UserMessageRepository();
         MessageGrid.DataSource = messageRepo.GetUnreadJobRemindMessagesToday(SessionManager.CurrentUser.UserID);
     }
 }
Beispiel #2
0
 private void BindData()
 {
     UserMessageRepository messageRepo = new UserMessageRepository();
     MessageGrid.DataSource = messageRepo.GetUnreadJobRemindMessagesToday(SessionManager.CurrentUser.UserID);
     MessageGrid.DataBind();
 }