Пример #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";
        }
Пример #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);

               


            }

           


        }
Пример #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");

            }
        }
Пример #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();
        }
Пример #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dal = GetDataAccessLayer();
          

              MasterPagePropertiesInterface m = Master as MasterPagePropertiesInterface;
            if (m != null) m.themeTitle = "Districts List";


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

             grdDistricts.DataSource = _dal.getAllDistricts(UserID);
            grdDistricts.DataBind();
        }
Пример #6
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();
        }
Пример #7
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");

            }
        }
Пример #8
0
        protected void Page_Load(object sender, EventArgs e)
        {

            _dal = GetDataAccessLayer();

            MasterPagePropertiesInterface m = Master as MasterPagePropertiesInterface;
            if (m != null) m.themeTitle = "Players List";


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

            string id = Request.QueryString["teamId"];
            if (id != "00000000-0000-0000-0000-000000000000")
            {
                _guid = string.IsNullOrEmpty(id) ? new Guid() : new Guid(id);


                grdSoccerPlayers.DataSource = _dal.getAllPlayersByTeamId(_guid);


            }
            else
            {
                grdSoccerPlayers.DataSource = _dal.getAllPlayers(UserID);


            }


            grdSoccerPlayers.DataBind();
            

 


        }
Пример #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     MasterPagePropertiesInterface m = Master as MasterPagePropertiesInterface;
     if (m != null) m.themeTitle = "System Emails";
     _dal = GetDataAccessLayer();
 }