textbox not changing

Discussion in 'ASP .Net' started by SQL, Jan 26, 2004.

  1. SQL

    SQL Guest

    I have four text boxes on one aspx page. Three of them are populated during
    page load with values from a database. The other is left blank.

    When updating I've noticed that although the three text boxes have been
    changed by the user, the original values are still being used when trying to
    update the dataset. While the text box that was blank behaves as expected.

    Has anyone else run into this problem...or have any idea as to what could
    cause this.

    Thanks
     
    SQL, Jan 26, 2004
    #1
    1. Advertisements

  2. Are you not checking for postback in the page load event, and consequently
    using the origonal values?

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_author_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_author_plug>
    ----------------------------------------------

    "SQL" <> wrote in message
    news:...
    > I have four text boxes on one aspx page. Three of them are populated

    during
    > page load with values from a database. The other is left blank.
    >
    > When updating I've noticed that although the three text boxes have been
    > changed by the user, the original values are still being used when trying

    to
    > update the dataset. While the text box that was blank behaves as

    expected.
    >
    > Has anyone else run into this problem...or have any idea as to what could
    > cause this.
    >
    > Thanks
    >
    >
     
    John Timney \(Microsoft MVP\), Jan 26, 2004
    #2
    1. Advertisements

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. Paul M. Frazier, Ph.D.

    TextBox.Text value not changing when it is prepopulated

    Paul M. Frazier, Ph.D., Jul 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    847
    Luc Kumps
    Jul 28, 2003
  2. Samridhi Kumar Shukla
    Replies:
    1
    Views:
    640
    Alvin Bruney
    Nov 30, 2003
  3. Dave
    Replies:
    2
    Views:
    3,086
    John M Deal
    Nov 11, 2004
  4. =?Utf-8?B?T3Bh?=

    Web Textbox Control text not changing

    =?Utf-8?B?T3Bh?=, Nov 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    550
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Nov 16, 2005
  5. Aaron Beall
    Replies:
    2
    Views:
    2,231
    Aaron Beall
    Sep 14, 2007
  6. avanti
    Replies:
    1
    Views:
    385
    Scott M.
    Oct 25, 2006
  7. Jurjen de Groot
    Replies:
    0
    Views:
    550
    Jurjen de Groot
    May 19, 2008
  8. VK
    Replies:
    3
    Views:
    359
    Dr J R Stockton
    Mar 15, 2007
Loading...