473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

storing the datatable into the session?

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
Nov 18 '05 #1
3 1372
try MS.PetShop , what you said sounds like Shop Cart.

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

Nov 18 '05 #2
hmm, i am not sure if i unstanding what is MS.PetShop

could you please post the link here

thanks a lot
"Edward" <zi***@citiz.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
try MS.PetShop , what you said sounds like Shop Cart.

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


Nov 18 '05 #3
You can download the PetShop app from
http://www.gotdotnet.com/team/compare/petshop.aspx.

--
Scott
http://www.OdeToCode.com

On Thu, 8 Jul 2004 14:31:17 +0800, "angus" <an***@angus.com> wrote:
hmm, i am not sure if i unstanding what is MS.PetShop

could you please post the link here

thanks a lot
"Edward" <zi***@citiz.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
try MS.PetShop , what you said sounds like Shop Cart.

> Dear All,
>
> my problem is that,
>
> i have a table to display, and, it allows the user to enter a new unitin > 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 theuser > 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
>
>



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kieran Benton | last post by:
Hi, I have quite a lot of metadata in a WinForms app that I'm currently storing within a hashtable, which is fine as long as I know the unique ID of the track (Im storing info on media files). Up...
1
by: VMI | last post by:
Is it possible to store the data in a datatable in the hard disk instead of the memory? By default, when a datatable's being filled, the table (and data) will remain in memory. Would it be possible...
3
by: Cortvriend Andy | last post by:
Hi I want to store some information on the server side! I want to keep that information in a DataTable, is that possible? Anyone who can help me and tell me how to do it? Thx Andy
0
by: Chris Ericoli | last post by:
Hi, I am working with an 'in session' ado dataset with an asp.net application. My dataset is comprised of two tables, one of which maintains a few calculated datacolumns. For some reason these...
2
by: ven | last post by:
Hello i have a dynamic datatable in my page. I wanna to write data to textboxes and after click on button "ADD data" i want to refresh datagrid on page... Here is my code : ' Insert page code...
6
by: Jason | last post by:
Is it possible to store an entire datatable/dataset in session state? If so, could someone please provide a code snippet or a link to documentation for me please? (I'm having no luck at all) ...
2
by: jakk | last post by:
Below is the exception that Iam getting. It says that the DataView that Iam storing in the session is not Serializable. BUt works fine if I store in the inproc session and fails if I switch to...
5
by: James Vickers | last post by:
All, I am a bit of noob to ASP.NET, and I am writing some OO based pages to try and emerge myself into it, however, I have come across a problem that has me completely stumped! What I want to...
4
by: =?Utf-8?B?YmFzdWxhc3o=?= | last post by:
Hi; I want to store a datatable (or an arraylist) as a session variable but when I try; Session = al_RecNo; I get an error that; "Cannot implicitly convert type...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.