ASP.NET: Context.Items.Add question

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2003
Posts: 23
Reputation: gicio is an unknown quantity at this point 
Solved Threads: 0
gicio gicio is offline Offline
Newbie Poster

ASP.NET: Context.Items.Add question

 
0
  #1
Oct 22nd, 2003
Hi!

At first I tell you what I will do:

1. Load data from DB
2. Fill System.Web.UI.WebControls.TextBox with data from DB
3. Than the user can change some data in the System.Web.UI.WebControls.TextBox

and now how I can compare what the user change?

should I add a new Item to Context.Items and compare it after changes?

any idea?


regards,


gicio
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 27
Reputation: srikkanthan is on a distinguished road 
Solved Threads: 0
srikkanthan srikkanthan is offline Offline
Light Poster

Re: ASP.NET: Context.Items.Add question

 
0
  #2
May 12th, 2004
Compare the data where... if in the client side, while loading the page itself you need to put the initial value in some javascript variable or hidden control. If in the server side, you can actually put the data in a whole lot of places. ViewState, Session, Cache etc.. are some of the places (viewstate is better in that you can even put your dataset itself without costing the server memory)....
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ASP.NET: Context.Items.Add question

 
0
  #3
May 13th, 2004
Or depending on how you retrieved the data from the DB, asp.net will still have the disconnected original data (i.e. dataset, datatable, datagrid) and you could then compare to the "changed" data to the original.

Or, you could place the data from the DB into an array (when you originally obtain the data) and simple compare the data to changed data.

Hope this helps!
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC