469,623 Members | 926 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

HOWTO: Detect FormView EditItemTemplate TextBox Value Changed

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?
--
Thank you kindly,

Dan Sikorsky BA, BSCE, MCS
Oct 4 '06 #1
2 2943
use onchanged event.

-- bruce (sqlwork.com)

"Dan Sikorsky" <Da*********@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.com...
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?
--
Thank you kindly,

Dan Sikorsky BA, BSCE, MCS

Oct 4 '06 #2
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)" wrote:
use onchanged event.

-- bruce (sqlwork.com)

"Dan Sikorsky" <Da*********@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.com...
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?
--
Thank you kindly,

Dan Sikorsky BA, BSCE, MCS


Oct 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Metal2You | last post: by
3 posts views Thread by Jurgen Appelo | last post: by
8 posts views Thread by BB | last post: by
reply views Thread by ThePurpleCat | last post: by
3 posts views Thread by J055 | last post: by
8 posts views Thread by =?Utf-8?B?QXNo?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.