•
•
•
•
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
![]() |
•
•
Join Date: Oct 2003
Posts: 23
Reputation:
Rep Power: 5
Solved Threads: 0
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
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
•
•
Join Date: May 2004
Posts: 27
Reputation:
Rep Power: 5
Solved Threads: 0
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)....
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!
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
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
- How To Hyperlink Normal HTML page with ASP.NET Page? (ASP.NET)
- ASP.Net VB Page to update a users profile not updating. (MS SQL)
- request.form is not working in asp.net (ASP.NET)
- Disable ASP.NET Button from Listbox (ASP.NET)
- Help with ADMIN side of login ASP.NET (ASP.NET)
- Populating & Retrieving Data in a listbox : ASP.NET (w/ VB.NET) (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Remove link frame around picture in Datagrid
- Next Thread: Website Login


Linear Mode