locked
Session RRS feed

  • Question

  • User669521406 posted

    can i save a session in a table??

    Friday, November 2, 2012 2:17 AM

Answers

  • User-1916174055 posted

    Hi

    pls check

    http://www.thaicreate.com/asp.net/c-sharp-asp.net-session-dataset-datatable.html

    http://www.dotnetspider.com/forum/248736-How-add-datatable-session-variable-C-class-file.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 2:25 AM
  • User-1313990200 posted

    If you want to save it in SQL table assign the session("NAME") in your insert statement.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 2:26 AM
  • User-735357247 posted

    You can always store your orders in one of the field of the table. Why do you want to first store that value in session then table?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 4:24 AM

All replies

  • User-1313990200 posted

    You mean table in a session?Which table?plz be more specific.

    Friday, November 2, 2012 2:19 AM
  • User669521406 posted

    i have created a shopping cart, then create a session

    If Session("Cart") Is Nothing Then
    Session.Add("Cart", New SortedList)
    End If
    Return CType(Session("Cart"), SortedList)

    like above, in this session i store the different product of a current user, but i need to save it such as an order in an order table

    Friday, November 2, 2012 2:21 AM
  • User-1916174055 posted

    Hi

    pls check

    http://www.thaicreate.com/asp.net/c-sharp-asp.net-session-dataset-datatable.html

    http://www.dotnetspider.com/forum/248736-How-add-datatable-session-variable-C-class-file.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 2:25 AM
  • User-1313990200 posted

    If you want to save it in SQL table assign the session("NAME") in your insert statement.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 2:26 AM
  • User-735357247 posted

    You can always store your orders in one of the field of the table. Why do you want to first store that value in session then table?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 2, 2012 4:24 AM