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. Getting data from datagrid to new aspx page

Getting data from datagrid to new aspx page

Scheduled Pinned Locked Moved ASP.NET
questioncsharp
3 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    triton630
    wrote on last edited by
    #1

    I have OrderForm.aspx and OrderConfirm.aspx. There is a datagrid on OrderForm.aspx which is a rudimentary shopping cart. When I submit from OrderForm.aspx, I redirect to OrderConfirm.aspx. From OrderConfirm.aspx, how do I get the information from the shopping cart? I am using codebehinds and C#. I'm looking for something equivalent to Request.Form("gridShoppingCart"), but I don't think it is as simple as that. Thanks.

    M 1 Reply Last reply
    0
    • T triton630

      I have OrderForm.aspx and OrderConfirm.aspx. There is a datagrid on OrderForm.aspx which is a rudimentary shopping cart. When I submit from OrderForm.aspx, I redirect to OrderConfirm.aspx. From OrderConfirm.aspx, how do I get the information from the shopping cart? I am using codebehinds and C#. I'm looking for something equivalent to Request.Form("gridShoppingCart"), but I don't think it is as simple as that. Thanks.

      M Offline
      M Offline
      Marcie Jones
      wrote on last edited by
      #2

      What you're looking for is some state management. If you want that grid data to be stored on the client, put it into ViewState, if you want it to be on the web server, store it in a Session variable. You can put the entire DataSet into either of these collections if that suits your purposes. Marcie http://www.codeproject.com

      T 1 Reply Last reply
      0
      • M Marcie Jones

        What you're looking for is some state management. If you want that grid data to be stored on the client, put it into ViewState, if you want it to be on the web server, store it in a Session variable. You can put the entire DataSet into either of these collections if that suits your purposes. Marcie http://www.codeproject.com

        T Offline
        T Offline
        triton630
        wrote on last edited by
        #3

        Thank you, Datagrid Girl. It turns out the answer was staring me in the face the whole time. I just needed somebody to tell me what I was looking at. I appreciate the help. triton630

        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