textbox empties itself on postback

  • Thread starter Abraham Andres Luna
  • Start date
A

Abraham Andres Luna

hello everyone,

i have an aspx page that when first loaded all the textboxes are empty. the
client side javascript will fill some of the textboxes based on what the
user selects. for some reason when the page posts back one of the textboxes
looses its value set by the client side javascript. does anyone have any
idea why this would happen.

thank you for your help,
abraham luna
 
J

jrodguitar

i have run into that problem before
the solution i found was to use a textbox from the HTML controls, and
set it to run as server control, and not the textbox from the web
controls.

Then it seems to remember the value pre-filled.
i hope this works with you
 
A

Abraham Andres Luna

thank you for your response
i will be testing the page to see if using the html textbox works
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top