HOWTO: Detect FormView EditItemTemplate TextBox Value Changed

Discussion in 'ASP .Net' started by =?Utf-8?B?RGFuIFNpa29yc2t5?=, Oct 4, 2006.

  1. 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
     
    =?Utf-8?B?RGFuIFNpa29yc2t5?=, Oct 4, 2006
    #1
    1. Advertising

  2. use onchanged event.

    -- bruce (sqlwork.com)

    "Dan Sikorsky" <> wrote in message
    news:...
    > 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
     
    bruce barker \(sqlwork.com\), Oct 4, 2006
    #2
    1. Advertising

  3. 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" <> wrote in message
    > news:...
    > > 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

    >
    >
    >
     
    =?Utf-8?B?RGFuIFNpa29yc2t5?=, Oct 4, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    1,795
    Grant Merwitz
    Sep 27, 2005
  2. Dan Sikorsky
    Replies:
    1
    Views:
    3,980
    Brock Allen
    Jun 17, 2006
  3. James
    Replies:
    1
    Views:
    839
    James
    Oct 6, 2006
  4. =?Utf-8?B?RGFuIFNpa29yc2t5?=

    HOWTO: Know Which Controls Actually Changed Values On FormView

    =?Utf-8?B?RGFuIFNpa29yc2t5?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    296
    Cowboy \(Gregory A. Beamer\)
    Oct 6, 2006
  5. Replies:
    1
    Views:
    262
    Grant Merwitz
    Sep 27, 2005
Loading...

Share This Page