Ejemplo n.º 1
0
        protected void GetNotification()
        {
            //int nots = nav.tasks.ToList().Where(n => n.User_Number == Grantees.No).Count();
            int     userType    = Convert.ToInt32(Session["usertype"]);
            var     credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]);
            Portals sup         = new Portals();

            sup.Credentials     = credentials;
            sup.PreAuthenticate = true;
            int nots = sup.FnCountGrantsNotifications(Session["username"].ToString(), userType);

            lblNots.Text = nots.ToString();
        }