when updating record: it takes old values of textbox

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
 
G

Guest

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.
 
N

nicholas

forgot to add "if not page.ispostback" before filling to textbox on page
load.
stupid of me...
thx for help
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top