storing the datatable into the session?

A

angus

Dear All,

my problem is that,

i have a table to display, and, it allows the user to enter a new unit in
the text box

e.g.

*original table (empty)*

unit
--------

*user enter "cm" in the textbox add press enter*

unit
-------
cm

*user enter "mm" in the textbox add press enter*

unit
--------
cm
mm

in this case, i won't store the above data to the database until the user
press a "submit all unit" button

I have declared a globel variable for the DataTable to store the above
records

my problem is that

if the user presses the add button, the page will be refreshed. and the
previous added rows in the globel datatable will display

Is it a good practice to store the datatable into the session, so that i can
get the previous added rows?

if not so, would you please suggest a good way to do this.

Thank you.


Regards,
Angus
 
A

angus

hmm, i am not sure if i unstanding what is MS.PetShop

could you please post the link here

thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top