Esempio n. 1
0
        protected void FreeShares()
        {
            var     credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]);
            Portals fShares     = new Portals();

            fShares.Credentials     = credentials;
            fShares.PreAuthenticate = true;
            fShares.FnFreeShares(Session["username"].ToString());
            Session["Shares"] = fShares.FnFreeShares(Session["username"].ToString());
            var     freeSh = String.Format(Session["Shares"].ToString());
            decimal fshrs  = Convert.ToDecimal(freeSh);

            lblfreeShares.Text = fshrs.ToString();
        }