Input Controls not updating value for postback

3 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    Nov 2010

    Posted 03 Jan 2011 Link to this post

    I have a support ticket open for this (380752), but I thought I would give the forums a shot as well. The web application I am working on is for an annual review at my company. At the top of the form there is a standard ASP.NET drop down box with a list of names that the person logged into the website manages. They can select the person from the drop down box and on the server side, it will check to see if that use already has an annual review in the database or not. If not, it will display a blank form for the person to fill out and submit to the database.

    If there is already one in the database, it will pull the information from the database and populate the many RadTextBoxes and RadNumericTextBoxes I have on the form with the information from the database. This is so they can update it or make changes before the final submission to the employee. That all works fine up to this point. The issue comes in when I try to change a value on the form that was populated with data from the database. If I try to change a rating on one of the RadNumericTextBoxes or change the comments or any change with any of the RadInput controls, when I hit the save button, on the watch list, the values are exactly as they were initially populated from the database and not the changed values I typed in the browser. I am testing this on IE 9.0.7930 and I have also tested it on Firefox 3.6.13 to make sure it was not an IE issue.

    Any ideas on what I may be doing wrong?

    Thanks.
  2. Chris
    Chris avatar
    2 posts
    Member since:
    Nov 2010

    Posted 04 Jan 2011 Link to this post

    I found my issue. The method I was using to populate the data from the database into the different RadInputs was in the wrong spot and was being called again on the postback and overwriting the changed values before submitting them to the database.

    Thanks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kaiser
    Kaiser avatar
    1 posts
    Member since:
    Jun 2013

    Posted 17 Jun 2013 Link to this post

    Thanks for posting the solution man. Had the same problem here.
Back to Top