DataSet updates

R

Random

What I want to do is to carry a DataSet through a multi-page process. Each
page will have an interface for updating and/or inserting records in
individual DataTables. At the end of the process, I will submit the entire
DataSet (through DataAdapters) back to the database.

Filling the DataSet schema seems simple enough. Binding controls to the
DataTables/DataViews is fine as well. But I am coming up woefully short on
resources to instruct me on how to update the in-memory DataSet when edits
are made, and how the DataSet processes multiple records on the database
when it's Update method is called.
 
A

Axel Dahmen

You sure already know that HTTP is a stateless protocol. So I guess you're
saving your DataSet into a Session variable.

You can bind your asp:Repeater, asp:DataGrid etc. controls in the Page_Load
event:

MyDataGrid.DataSource = Session["MyDataSet"];
MyDataGrid.DataMember = "MyDataTableName";
MyDataGrid.DataBind();

HTH,
Axel Dahmen
 
J

Joe Fallon

David Sceppa's book on ADO.Net is a fantastic resource.
It explains all of this in great detail.
 
R

Random

Thanks for the referral. I'll check it out.


Joe Fallon said:
David Sceppa's book on ADO.Net is a fantastic resource.
It explains all of this in great detail.
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top