Re: DataAdapter update
From: Girish bharadwaj (girishb_at_mvps.org)
Date: 09/13/04
- Next message: Eliyahu Goldin: "Re: How to access a network share folder?"
- Previous message: GrantMagic: "Re: How to access a network share folder?"
- In reply to: Janaka: "DataAdapter update"
- Next in thread: Cor Ligthert: "Re: DataAdapter update"
- Reply: Cor Ligthert: "Re: DataAdapter update"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 09:35:59 -0400
Following are the options for states in ASP.NET.
1. Cookies.
2. ViewState
3. Session state
4. Application
5. Cache
Among these, if you dont want to use session state, you can probably use
Application or Cache. I recommend Cache since that will basically take care
of cleaning up old items.
You might be able to use ViewState too but you will need to test to make
sure that it does not cause much problems.
-- Girish Bharadwaj http://msmvps.com/gbvb "Janaka" <janaka@magicalia.com> wrote in message news:OCTiTFYmEHA.3896@TK2MSFTNGP15.phx.gbl... > I tend to use the SqlDataAdapter class in WinForms projects because once the > inital data is loaded any modifications can be easily added/updated through > a call to the Update() method. I've found in aspnet that the same thing is > possible but because of the stateless nature of the web in order to do this > I have to go through the following steps: > > 1. First visit to page loads DataSet and binds DataList with data > 2. User edits data and submits the pages > 3. Reload the DataSet with original data as in 1. > 4. Iterate through the DataList and updates rows in the DataSet > 5. Call the Update() method to update edited rows > > Now am I doing this correctly or is there any way I can skip step 3? It > seems easier to just update each row in the DataList than go through the > process of only updating modified rows. > > >
- Next message: Eliyahu Goldin: "Re: How to access a network share folder?"
- Previous message: GrantMagic: "Re: How to access a network share folder?"
- In reply to: Janaka: "DataAdapter update"
- Next in thread: Cor Ligthert: "Re: DataAdapter update"
- Reply: Cor Ligthert: "Re: DataAdapter update"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|