This is a migrated thread and some comments may be shown as answers.

Input Controls not updating value for postback

2 Answers 369 Views
Input
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 04 Jan 2011, 12:36 AM
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 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 04 Jan 2011, 10:06 PM
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.
0
Kaiser
Top achievements
Rank 1
answered on 17 Jun 2013, 07:34 PM
Thanks for posting the solution man. Had the same problem here.
Tags
Input
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Kaiser
Top achievements
Rank 1
Share this question
or