HOWTO: Detect FormView EditItemTemplate TextBox Value Changed

G

Guest

How can we tell if the value in a FormView EditItemTemplate TextBox has
changed from its initial value so that we know if we have to update the
corresponding db table column value?
 
G

Guest

The concept I'm inquiring about is when you click the submit button on the
edititemtemplate, which textboxes at that time have data in them that is
different than the initial data loaded into the formview.

I believe you're refeing to the onchanged event of each textbox which
doesn't take care of when the user changes a textbox to a different value,
and then changes it back to the initial value. Then onchanged event fires,
but there's no way to tell if the value really changed - and is different
than what's in the database - by the time the submit button is clicked.

--
Thank you kindly,

Dan Sikorsky BA, BSCE, MCS


bruce barker (sqlwork.com) said:
use onchanged event.

-- bruce (sqlwork.com)
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top