private void ViewUserInfo()
        {
            UserBLL aUser = new UserBLL();
            try
            {

                //if (Session["UserIdForView"] == null)
                //{
                //    aUser.UserId = LumexSessionManager.Get("ActiveUserId").ToString();
                //}
                //else
                //{
                //    aUser.UserId = LumexSessionManager.Get("UserIdForView").ToString();
                //}
                aUser.UserId = LumexSessionManager.Get("ActiveUserId").ToString();
                lblUserId.Text = aUser.UserId;
                LumexSessionManager.Add("UserIdForUpdate", lblUserId.Text);
                DataTable dt = new DataTable();
                dt = aUser.GetUserInfoByIdForView(aUser.UserId);

                if (dt.Rows.Count > 0)
                {
                    lvlName.Text = dt.Rows[0]["FirstName"].ToString() + dt.Rows[0]["LastName"].ToString();
                    lvlEmail.Text = dt.Rows[0]["Email"].ToString();
                    lvlMobile.Text = dt.Rows[0]["MobileNo"].ToString();
                    lvlLeft.Text = dt.Rows[0]["TotalLeft"].ToString() + " [" + dt.Rows[0]["LeftCount"].ToString() + "]";
                    lvlRight.Text = dt.Rows[0]["TotalRight"].ToString() + " [" + dt.Rows[0]["RightCount"].ToString() + "]";

                    LumexSessionManager.Remove("UserIdForView");
                    if (dt.Rows[0]["IsActive"].ToString() == "Yes")
                    {

                        btnActive.Visible = false;
                        lvlIsActive.Visible = false;

                        UserAccountBLL userAccount = new UserAccountBLL();

                        dt = userAccount.GetUserActivationInfoById(lblUserId.Text);
                        lblStakeName.Text = dt.Rows[0]["StakeName"].ToString();
                        lblStakeValue.Text = (('$') + dt.Rows[0]["Invest"].ToString());
                        lblReferal.Text = dt.Rows[0]["RefferId"].ToString();
                        lblPlacement.Text = dt.Rows[0]["PleacementId"].ToString() + "(" + dt.Rows[0]["PlacePosition"].ToString() + ")";
                        lblStakeJoinDate.Text = dt.Rows[0]["JoinDate"].ToString();
                        lblActiveDate.Text = dt.Rows[0]["ActiveDate"].ToString();

                    }
                    else
                    {
                        lvlIsActive.Visible = true;
                        lvlIsActive.Text = "Click the Active button to active your account.";
                        btnActive.Visible = true;
                    }
                }
            }
            catch (Exception)
            {

                //  throw;
            }
        }
        private void ViewUserInfo()
        {
            UserBLL aUser = new UserBLL();
            try
            {

                if (Session["UserIdForView"] == null)
                {
                    aUser.UserId = LumexSessionManager.Get("ActiveUserId").ToString();
                }
                else
                {
                    aUser.UserId = LumexSessionManager.Get("UserIdForView").ToString();
                }

                lblUserId.Text = aUser.UserId;
                LumexSessionManager.Add("UserIdForUpdate", lblUserId.Text);
                DataTable dt = new DataTable();
                dt = aUser.GetUserInfoByIdForView(aUser.UserId);

                if (dt.Rows.Count > 0)
                {

                    lvlGivenName.Text = dt.Rows[0]["FirstName"].ToString();
                    lvlSureName.Text = dt.Rows[0]["LastName"].ToString();
                    lvlPassPortNo.Text = dt.Rows[0]["PassportNo"].ToString();
                    lvlAddress.Text = dt.Rows[0]["Address"].ToString();
                    lvlCountry.Text = dt.Rows[0]["Country"].ToString();
                    lvlStreet.Text = dt.Rows[0]["House"].ToString();
                    lvlMobileNo.Text = dt.Rows[0]["MobileNo"].ToString();
                    lvlEmail.Text = dt.Rows[0]["Email"].ToString();
                    lvlEmrgConctName.Text = dt.Rows[0]["EmrName"].ToString();
                    lvlEmrgConctAddress.Text = dt.Rows[0]["EmrAdress"].ToString();
                    lvlRelation.Text = dt.Rows[0]["RelationName"].ToString();
                    lvlEmrgConctMobile.Text = dt.Rows[0]["EmrMobile"].ToString();
                    lvlEmrgConctEmail.Text = dt.Rows[0]["EmrEmail"].ToString();
                    lvlEmrgConctCountry.Text = dt.Rows[0]["EmarCountryName"].ToString();

                    LumexSessionManager.Remove("UserIdForView");
                }
            }
            catch (Exception)
            {

                //  throw;
            }
        }