Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        platform = Request.QueryString["pid"];


        /* if (platform == "ALL")
         * {
         *   Session.Remove("platform");
         *   if(Session["page"] != null)
         *           Response.Redirect(Session["Page"]+".aspx");
         *   else
         *       Response.Redirect("AllGames.aspx");
         *
         * }
         * else
         * {
         *   Session.Add("platform", platform);
         * }*/
        if (platform == "ALL")
        {
            Response.Redirect("TopGames.aspx");
        }

        Session.Remove("Page");
        Session.Add("pageadder", "TopGames");

        Session.Add("url", "TopGamesPlatform.aspx" + Request.QueryString["pid"]);
        cart = new AddCart();
        wish = new AddWishlist();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        platform = Request.QueryString["pid"];

        /* if (platform == "ALL")
         {
             Session.Remove("platform");
             if(Session["page"] != null)
                     Response.Redirect(Session["Page"]+".aspx");
             else
                 Response.Redirect("AllGames.aspx");

         }
         else
         {
             Session.Add("platform", platform);
         }*/
        if (platform == "ALL")
        {
            Response.Redirect("Upcomming.aspx");
        }
        Session.Remove("Page");
        //Session.Remove("pageadder");
        Session.Add("pageadder", "Upcomming");

        Session.Add("url", "UpcommingPlatform.aspx?pid=" + Request.QueryString["pid"]);

        wish = new AddWishlist();
    }
Esempio n. 3
0
        public async Task <IActionResult> AddWishList(string productId)
        {
            var addWishList = new AddWishlist();

            addWishList.ProductId = productId;
            addWishList.UserName  = User.Identity.Name;
            Result resultAddWishList = await addWishListService.HandleAsync(addWishList);

            return(RedirectToAction("WishList"));
        }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Session.Remove("Search");

        if (Session["Platform"] != null)
        {
            if(Session["Platform"] != "All")
                Response.Redirect("TopGamesPlatform.aspx?pid=" + (String)Session["Platform"]);
        }
        Session.Add("page","TopGames");
           // iterator = 0;
        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "TopGamesPlatform.aspx");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        platform = Request.QueryString["pid"];


        if (platform == "ALL")
        {
            Response.Redirect("AllGames.aspx");
        }
        Session.Remove("Page");
        Session.Add("pageadder", "AllGames");
        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "AllGamesPlatform.aspx?pid=" + Request.QueryString["pid"]);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        platform = Request.QueryString["pid"];

        if (platform == "ALL")
            Response.Redirect("NewGames.aspx");

        Session.Remove("Page");
        //Session.Remove("pageadder");
        Session.Add("pageadder", "NewGames");

        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "NewGamesPlatform.aspx?pid=" + Request.QueryString["pid"]);
    }
Esempio n. 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Session.Remove("Search");

        if (Session["Platform"] != null)
        {
            if (Session["Platform"] != "All")
            {
                Response.Redirect("UpcommingPlatform.aspx?pid=" + (String)Session["Platform"]);
            }
        }
        Session.Add("page", "Upcomming");
        // iterator = 0;
        wish = new AddWishlist();
        Session.Add("url", "UpcommingPlatform.aspx");
    }
Esempio n. 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        platform = Request.QueryString["pid"];


        string search = Request.QueryString["search"];


        if (platform == "ALL")
        {
            Response.Redirect("SearchAllGames.aspx?search=" + Session["search"]);
        }
        Session.Remove("Page");

        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "SearchAllGames.aspx?search=" + Session["search"]);
    }
Esempio n. 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if (Session["Platform"] != null)
         * {
         *   Response.Redirect("AllGamesPlatform.aspx?pid="+(String)Session["Platform"]);
         * }
         */
        Session.Remove("Search");

        if (Session["Platform"] != null)
        {
            Response.Redirect("AllGamesPlatform.aspx?pid=" + (String)Session["Platform"]);
        }
        Session.Add("page", "AllGames");
        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "AllGamesPlatform.aspx");
    }
Esempio n. 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if (Session["Platform"] != null)
        {
            Response.Redirect("AllGamesPlatform.aspx?pid="+(String)Session["Platform"]);
        }
           */

        string search = Request.QueryString["search"];

        if (Session["Platform"] != null )
        {
            Response.Redirect("SearchAllGamesPlatform.aspx?pid=" + (String)Session["platform"] + "&search=" + Session["search"]);
        }
        //Session.Add("page", "SearchAllGames");
        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "SearchAllGames.aspx?search=" + Session["search"]);
    }
Esempio n. 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if (Session["Platform"] != null)
         * {
         *   Response.Redirect("AllGamesPlatform.aspx?pid="+(String)Session["Platform"]);
         * }
         */

        string search = Request.QueryString["search"];

        if (Session["Platform"] != null)
        {
            Response.Redirect("SearchAllGamesPlatform.aspx?pid=" + (String)Session["platform"] + "&search=" + Session["search"]);
        }
        //Session.Add("page", "SearchAllGames");
        cart = new AddCart();
        wish = new AddWishlist();
        Session.Add("url", "SearchAllGames.aspx?search=" + Session["search"]);
    }
Esempio n. 12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if (Session["Platform"] != null)
         * {
         *   Response.Redirect("AllGamesPlatform.aspx?pid="+(String)Session["Platform"]);
         * }
         */
        Session.Remove("Search");
        Session.Remove("platform");

        if (String.IsNullOrEmpty(Page.Request.QueryString["gg_id"]))
        {
            Response.Redirect("~/Genre.aspx");
        }
        cart = new AddCart();
        wish = new AddWishlist();

        Session.Add("url", "GameGenre.aspx?gg_id=" + Request.QueryString["gg_id"] + "&Name=" + Request.QueryString["Name"]);
    }
Esempio n. 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if (Session["Platform"] != null)
        {
            Response.Redirect("AllGamesPlatform.aspx?pid="+(String)Session["Platform"]);
        }
           */
        Session.Remove("Search");
        Session.Remove("platform");

        if (String.IsNullOrEmpty(Page.Request.QueryString["gg_id"]))
        {
            Response.Redirect("~/Genre.aspx");
        }
        cart = new AddCart();
        wish = new AddWishlist();

        Session.Add("url", "GameGenre.aspx?gg_id=" + Request.QueryString["gg_id"] + "&Name=" + Request.QueryString["Name"]);
    }
Esempio n. 14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            if (Session["User"] == null)
            {
                lbl_del.Text       = "Sign in to add or change your review";
                btn_delete.Visible = false;
            }
            else
            {
                btn_delete.Visible = true;
                lbl_del.Text       = "";
            }
            cart = new AddCart();
            wish = new AddWishlist();
        }

        game_rating = 0;
        game_review = 0;


        con2 = new MyConnection();
        u_id = Convert.ToInt16(Session["userid"]);
        g_id = Convert.ToInt16(Request.QueryString["gid"]);

        GetReview();
        GetGameReview();
        rev = new AddReview();

        if (Exist)
        {
            lbl_del.Text = "";
        }
        else
        {
            lbl_del.Text = "";
        }
        Session.Add("url", "Details.aspx?gid=" + g_id);
    }