473,396 Members | 1,989 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,396 software developers and data experts.

DataSet updates

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.

Nov 19 '05 #1
3 1175
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

--
www.sportbootcharter.com

-------------------------
"Random" <ci*******@hotmail.com> schrieb im Newsbeitrag
news:ee**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 19 '05 #2
David Sceppa's book on ADO.Net is a fantastic resource.
It explains all of this in great detail.
--
Joe Fallon

"Random" <ci*******@hotmail.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 19 '05 #3
Thanks for the referral. I'll check it out.
"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:up*************@TK2MSFTNGP11.phx.gbl...
David Sceppa's book on ADO.Net is a fantastic resource.
It explains all of this in great detail.
--
Joe Fallon

"Random" <ci*******@hotmail.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
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.


Nov 19 '05 #4

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

Similar topics

3
by: Vijay Balki | last post by:
This might be a dumb question to ask. Can someone answer me with patience.. When I have a typed or un-typed dataset, the only way I can update is like below? Dim con As New...
1
by: PV | last post by:
When performing a parent-child table updates using DataAdapters, the updates have to be performed in at least two passes. The deletes must be done child first, then parent. Conversely, the...
4
by: Frnak McKenney | last post by:
I'm using an in-core DataSet as an image of my application's 'database' (a multi-table Access97 mdb file). Updates are made to the DataTables within the DataSet via forms with bound TextBoxes,...
4
by: suzy | last post by:
hello. how can i sort data in a dataset? all the examples i have seen on msdn, etc are sorting a dataview. this works fine, but i want to return the results in xml and the dataview doesn't...
0
by: JJ | last post by:
Hi, I have a DataSet that has no records in it from Database. I use this for just collecting records that I have been working on. I have a new worker dataset that goes out to database and gets a...
4
by: Kenny | last post by:
Hello all, I am wondering about the memory arrangement in C#. If I am going to load, say, 20000 data rows from about 20 tables at once, where will be the data stored in my machine? All save on...
4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
4
by: Peter Proost | last post by:
Hello group, what would be the best way to do the next thing: I've got a grid form with about 15000 records, when I double click a row a detail form is opened and the user can modify and save...
7
by: Jean Christophe Avard | last post by:
Hi! I have a dataset that retreive all the item information from the database. I need to be able to edit them, in the dataset and in the database. I have this code, could anyone tell me if I'm...
2
by: palgre | last post by:
Hi ALL, I am working in an windows based application using SQL Server 2000 as database. There are few tables (refer parent tables) in the application which are uploaded by a seprate application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.