FormView change flag

D

DavidC

Is there any way to know if a FormView (in edit mode) has had changes to
textbox controls since the last postback? Thanks.
 
M

Mr. Arnold

DavidC said:
Is there any way to know if a FormView (in edit mode) has had changes to
textbox controls since the last postback? Thanks.

I guess you can save the data to hidden fields and make a check that
way, what it was previously and what it currently in the text of the
control.
 
A

Andy O'Neill

DavidC said:
Is there any way to know if a FormView (in edit mode) has had changes to
textbox controls since the last postback? Thanks.

You have two dictionaries available, oldvalues and newvalues.
You can iterate through and compare them.
There's even example code on msdn.
Google on formview oldvalues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top