コード例 #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();
    }
コード例 #2
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("Upcomming.aspx");
        }
        Session.Remove("Page");
        //Session.Remove("pageadder");
        Session.Add("pageadder", "Upcomming");

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

        wish = new AddWishlist();
    }
コード例 #3
0
ファイル: ShopController.cs プロジェクト: ybalcin/Shopping
        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"));
        }
コード例 #4
0
ファイル: TopGames.aspx.cs プロジェクト: yprocks/GameAddict
    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");
    }
コード例 #5
0
    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"]);
    }
コード例 #6
0
    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"]);
    }
コード例 #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");
    }
コード例 #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"]);
    }
コード例 #9
0
ファイル: AllGames.aspx.cs プロジェクト: yprocks/GameAddict
    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");
    }
コード例 #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"]);
    }
コード例 #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"]);
    }
コード例 #12
0
ファイル: GameGenre.aspx.cs プロジェクト: yprocks/GameAddict
    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"]);
    }
コード例 #13
0
ファイル: GameGenre.aspx.cs プロジェクト: yprocks/GameAddict
    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"]);
    }
コード例 #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);
    }