Пример #1
0
    protected void NotificationCount()
    {
        // long nt = 0,newnt=0;
        // if (lblNotification.Text.Length > 0)
        //   nt = Convert.ToInt64(lblNotification.Text);

        long cnotif = Convert.ToInt64(NotificationBLL.countNotification(userid).ToString());

        lblNotification.Text = cnotif.ToString();
        if (cnotif == 000)
        {
            lblNotification.Visible = false;
        }
        long crequest = Convert.ToInt64(FriendsBLL.countFriendRequests(userid, Global.PENDING).ToString());

        lblFriendsRequest.Text = crequest.ToString();
        if (crequest == 000)
        {
            lblFriendsRequest.Visible = false;
        }
        //  newnt = Convert.ToInt64(lblNotification.Text);
        //if (newnt > nt)
        //{


        //ScriptManager.RegisterClientScriptBlock(UpdatePanel3, UpdatePanel3.GetType(), "script", "insideJS();", true);
        //}
    }