private void ShowUnreadMessageAlert()
        {
            MessageBo msgBo = new MessageBo();
            DataTable dt;
            // Get unread messages from the DB
            int intCount  = 0;
            int flavourId = 0;

            intCount           = msgBo.GetUnreadMessageCount(userVo.UserId, out flavourId);
            hdfFlavourId.Value = flavourId.ToString();
            if (intCount > 0)
            {
                lnkbtnInbox1.Text  = "New Massage " + "(" + intCount + ")";
                imgInbox1.ImageUrl = "~/Images/msgUnRead.png";
            }

            else
            {
                lnkbtnInbox1.Text  = "New Massage " + "(" + intCount + ")";
                imgInbox1.ImageUrl = "~/Images/messageread.png";
            }
        }
        private void ShowUnreadMessageAlert()
        {
            msgBo = new MessageBo();

            // Get unread messages from the DB
            int intCount = 0, flavourId = 0;

            intCount = msgBo.GetUnreadMessageCount(userVo.UserId, out flavourId);

            // Store the messages in a label control
            if (intCount > 0)
            {
                if (Session[SessionContents.UserTopRole] == "RM" && flavourId == 10)
                {
                    lnkBtnNewMessages.Visible = true;
                    lnkBtnNewMessages.Text    = "<u>You have " + intCount + " unread messages</u>";
                }
                else
                {
                    lnkBtnNewMessages.Visible = false;
                }
            }
        }