| | |
ASP.NET: Context.Items.Add question
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2003
Posts: 23
Reputation:
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:
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!
![]() |
Similar Threads
- A General Question? (ASP.NET or PHP) (ASP.NET)
- Session.Add vs. Context.Items.Add (ASP.NET)
- ASP.Net / C# Web Developer (Web Development Job Offers)
- request.form is not working in 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: Server delay - with html, asp, aspx pages
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formview gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl





