943,712 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 21748
  • ASP.NET RSS
Oct 22nd, 2003
0

ASP.NET: Context.Items.Add question

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gicio is offline Offline
23 posts
since Oct 2003
May 12th, 2004
0

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

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)....
Reputation Points: 42
Solved Threads: 0
Light Poster
srikkanthan is offline Offline
27 posts
since May 2004
May 13th, 2004
0

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

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!
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in ASP.NET Forum Timeline: Remove link frame around picture in Datagrid
Next Thread in ASP.NET Forum Timeline: Server delay - with html, asp, aspx pages





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC