best way of using session variables to store datatable?

G

Guest

When my webpage loads the first time, I fill my datatable with records from
the DB and display them in my gridview. Once it loads, the user clicks on a
button and add records to the datatable, which also show up in the gridview.
When "Finish" is clicked, I'll insert the records into the DB.
Question: What's the best way to display the datatable (with the records
from the DB and the records that the user added through the page) into the
gridview after postback? And when the user's done, how can I know which
records from the datatable were added by the user?

Thanks
 
G

Guest

VMI,
This is really an ASP.NET question (not a C# language question) and should
be directed to the ASP.NET group.

If your code really adds a new Grid row to the underlying datatable, you
should only need to get this out of session state and pass it to a
DataAdapter to update your database.
Peter
 

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

Top