Newbie : determine what's changed on a web page

  • Thread starter Thread starter Mike D
  • Start date Start date
M

Mike D

I am binding a Dataadpter to 25 Text controls on a Web form. There is too
much data to bind to a datagrid(because it runs off the screen) and the
datalist is not user friendly for designing the screen. Enough about that
though and 24 Text controls.

What are the commands for looping through all the controls, finding out if
the value has changed for that particular control. I'm trying to track the
revisions made to a record so the user can view what changed on a particular
day.
 
I am binding the dataset to the 24 controls.

I didn't think getchanges was going to reflect the text control changes.
Powerbuilder has ruined me.

Thanks
 
You use the controls collection to loop through the
pages, but as far as finding out "what has changed on a
particular day", you'll not have any luck unless you have
also implemented some type of "history file"/"change log"
for your database. You'll not do this in the controls,
but rather, through history tables where you write each
and every change that is made back to the database.
 
Correct. I have two tables, dictionary_revision and
dictionary_revision_detail. Dictionary_revision tells me the user, date and
time. The Dictionary_revision_detail tells me what columns and values both
old and new they changed.
 
Mike D said:
I am binding a Dataadpter to 25 Text controls on a Web form. There is too
much data to bind to a datagrid(because it runs off the screen) and the
datalist is not user friendly for designing the screen. Enough about that
though and 24 Text controls.

HAve you considered implementing paging on the Datagrid? It would seem
that would be easier that databinding 24 controls.

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
 
Don't datagrids only display information horizontally? I need the web page
to look like a form page and track the changes to the tables columns. I'm
still trying to find the code for getchanges on the columns and not just the
row.
 
Yes GetChanges should work .. because by changing the value of DataBound
controls you are changing the underlying dataset, and until you do a
DataSet.AcceptChanges() (or Update thru adapter), the changes are still
there alongwith the original values. More info on this in my book
http://www.amazon.com/exec/obidos/t...002-9598073-0765600?v=glance&s=books&n=507846 .

There are a multitude of other ways to get the changed data, another way is
WriteXML(With a parameter here to specify only the changed rows), or you can
set rowfilters .. blah blah blah .. lots of ways..

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
 
DataGrids are highly customizable, and true it's only rows, but nothing
prevents you from customizing it like ---

One column, 1 row per page view and paging implemented .. there you go .. it
doesn't look rowbased anymore !! :)

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
 
Back
Top