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