Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dal = GetDataAccessLayer();
            if (Context.User.Identity.AuthenticationType == "Forms" && Context.User.Identity.IsAuthenticated)
            {
                string userName;
                FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
                _identity = (FormsIdentity)Context.User.Identity;
              
                lblCount.Text = _dal.GetUserMessageCount(UserID).ToString();
                lblminiCount.Text = lblCount.Text;
                userName = _identity.Name;
                lblhiddenName.Text = userName.ToString();
                lblFullName.Text = userName.ToString();



            }
            else
            {
                Response.Redirect("~/BackDoor/Login.aspx");

            }

            Page.Title = ConfigurationManager.AppSettings["ClientName"] + "| MailBox";
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {

            SkyLarkArenaDa _dal = new SkyLarkArenaDa();
   

            if (Context.User.Identity.AuthenticationType == "Forms" && Context.User.Identity.IsAuthenticated)
            {
                FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
                _identity = (FormsIdentity)Context.User.Identity;

                userName = _identity.Name;
                litName.Text = userName;

                HttpCookie authCookie = HttpContext.Current.Request.Cookies[FormsAuthentication.FormsCookieName];

                // Decrypts the FormsAuthenticationTicket that is held in the cookie's .Value property.
                FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value);
                string s = authTicket.UserData;
                string[] UserData = s.Split(',');

                string _userId = SkyLarkArenaBl.DecryptRijndael(UserData[3], Constants.passwordSalt);
                Guid _guid = new Guid(_userId);


                lblcount.Text = _dal.GetUserMessageCount(_guid).ToString();
        


            }

        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dal = GetDataAccessLayer();
            if (Context.User.Identity.AuthenticationType == "Forms" && Context.User.Identity.IsAuthenticated)
            {
                string userName;
                FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
                _identity = (FormsIdentity)Context.User.Identity;
                Guid _UserId = new Guid(Session["userId"].ToString());

                lblCount.Text = _dal.GetUserMessageCount(_UserId).ToString();
                lblminiCount.Text = lblCount.Text;
                userName = _identity.Name;
                lblhiddenName.Text = userName.ToString();
                lblFullName.Text = userName.ToString();



            }
            else
            {
                Response.Redirect("~/BackDoor/Login.aspx");

            }
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {

            
            FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
            _identity = (FormsIdentity)Context.User.Identity;

            _dal = GetDataAccessLayer();
       
            lblCount.Text = _dal.GetUserMessageCount(UserID).ToString();
            rptMail.DataSource = _dal.getAllMessages(UserID);
            rptMail.DataBind();
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dal = GetDataAccessLayer();



            lblCount.Text = _dal.GetUserMessageCount(UserID).ToString();
            lblminiCount.Text = lblCount.Text;

            if (Context.User.Identity.AuthenticationType == "Forms" && Context.User.Identity.IsAuthenticated)
            {
                FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
                _identity = (FormsIdentity)Context.User.Identity;

                userName = _identity.Name;
                lblFullName.Text = userName;
                lblhiddenName.Text = userName;





            }
            else
            {
                //  Response.Redirect("~/BackDoor/Login.aspx");

            }


            var ddlTournamentsTypes = _dal.GetTorunamentTypes();

            //dlTournamentTypes.DataSource = ddlTournamentsTypes;
            //dlTournamentTypes.DataValueField = "LookupValue";
            //dlTournamentTypes.DataTextField = "LookupDescription";
            //dlTournamentTypes.DataBind();


            //var ddlRegTypes = _dal.GetRegistrationTypes();
            //rbRegType.DataSource = ddlRegTypes;

            //rbRegType.DataValueField = "LookupValue";
            //rbRegType.DataTextField = "LookupDescription";
            //rbRegType.DataBind();
        }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {


            Page.Title = ConfigurationManager.AppSettings["ClientName"] +"DashBoard";

            _dal = GetDataAccessLayer();
            int nonActiatedUsers = _dal.GetRegisteredUsersCount();
            Guid _UserId = UserID;

            lblCount.Text = _dal.GetUserMessageCount(_UserId).ToString();
            lblminiCount.Text = lblCount.Text;
            
            

            lblplayersJoined.Text = nonActiatedUsers.ToString();
            lblacticvations.Text = nonActiatedUsers.ToString();

            int notProceesedPointsPlayer = _dal.GetPointsToBeProcessedCount();

            lblPointsToReDeem.Text = notProceesedPointsPlayer.ToString();

          
            if (Context.User.Identity.AuthenticationType == "Forms" && Context.User.Identity.IsAuthenticated)
            {
                FormsIdentity _identity = (FormsIdentity)Context.User.Identity;
                  _identity = (FormsIdentity)Context.User.Identity;

               _identity = (FormsIdentity)Context.User.Identity;


               lblFullName.Text = _identity.Name;
                lblhiddenName.Text =  _identity.Name;


                 

            }else
            {
                Response.Redirect("~/BackDoor/Login.aspx");

            }
        }