Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET MVC 3

ASP.NET MVC 3

Scheduled Pinned Locked Moved ASP.NET
asp-netquestioncsharpsysadminbusiness
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CodingYoshi
    wrote on last edited by
    #1

    I have a site with these views: Categories > Products for Category X > Product Details for Product X > Confirmation Page The first view has a bunch of categories and each has a link such as below: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 When users click this it will show the 2nd view's page 1 with 10 products (paging). I am passing totalCount since I already know it in the first view and I don't want the server to have to get it again and I cannot store it in sessions or cookies. Requirements are: Users should be able to email this url and someone else should be able to copy paste and it should work. The Products for Category X page will have 10 products and each product will have a link for more details. The link will be like below: http://localhost:39532/Product/Info?productId=0f0c1207-e002-4430-ae10-2ee533516b2f&CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&addedToShoppingCart=False Users can click this link to view further details, add/remove to shopping cart based on the value. The questions I have are: When the user adds the product to shopping list it will go to a confirmation page where they can view shopping cart or continue browsing. If they click continue browsing it should go to the product list page they were on which in this case is: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 But how will the confirmation page know this info? Do I need to pass it into the ProductController.ProductDetail action which will then pass it to Confirmation.Confirm action? Now my actions will have parameters which are only to be passed onto some other view. Let me know if my question does not make sense.

    CodingYoshi Artificial Intelligence is no match for Human Stupidity.

    J 1 Reply Last reply
    0
    • C CodingYoshi

      I have a site with these views: Categories > Products for Category X > Product Details for Product X > Confirmation Page The first view has a bunch of categories and each has a link such as below: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 When users click this it will show the 2nd view's page 1 with 10 products (paging). I am passing totalCount since I already know it in the first view and I don't want the server to have to get it again and I cannot store it in sessions or cookies. Requirements are: Users should be able to email this url and someone else should be able to copy paste and it should work. The Products for Category X page will have 10 products and each product will have a link for more details. The link will be like below: http://localhost:39532/Product/Info?productId=0f0c1207-e002-4430-ae10-2ee533516b2f&CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&addedToShoppingCart=False Users can click this link to view further details, add/remove to shopping cart based on the value. The questions I have are: When the user adds the product to shopping list it will go to a confirmation page where they can view shopping cart or continue browsing. If they click continue browsing it should go to the product list page they were on which in this case is: http://localhost:39532/Product/List?CategoryId=94fc667e-6fec-4f76-a83b-7840df34e373&pubGuid=a6883116-560f-43e9-9ceb-7fc0a410b210&page=1&totalCount=30 But how will the confirmation page know this info? Do I need to pass it into the ProductController.ProductDetail action which will then pass it to Confirmation.Confirm action? Now my actions will have parameters which are only to be passed onto some other view. Let me know if my question does not make sense.

      CodingYoshi Artificial Intelligence is no match for Human Stupidity.

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      You have to capture the last url and store the value in the confirmation page.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups