when updating record: it takes old values of textbox

  • Thread starter Thread starter nicholas
  • Start date Start date
N

nicholas

have an update form with a textbox and button.
the textbox is filled with the data found in the dbase.

the user can change this and update the record.

the weird thing is that the value that is inserted is the first value, not
the one the user inputed.

even if I type response.write(thetextbox.text) it returns the old value

realy don't understand why.
have lot's of update forms, never had that problem.

thx
 
nicholas,

I think you must be assigning a old value to the textbox after page load. So
just for sake, CTR +F by textbox id and make sure that you are not changing
the value of text box after the user value has been restored.
 
forgot to add "if not page.ispostback" before filling to textbox on page
load.
stupid of me...
thx for help
 
Back
Top