User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,808 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 13228 | Replies: 2
Reply
Join Date: Oct 2003
Posts: 23
Reputation: gicio is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
gicio gicio is offline Offline
Newbie Poster

Help ASP.NET: Context.Items.Add question

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2004
Posts: 27
Reputation: srikkanthan is on a distinguished road 
Rep Power: 5
Solved Threads: 0
srikkanthan srikkanthan is offline Offline
Light Poster

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

  #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  
Join Date: Feb 2003
Location: Canada
Posts: 786
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Rep Power: 9
Solved Threads: 26
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

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

  #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, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 5:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC