TextBox control doesn't show value

  • Thread starter Thread starter Paul D. Fox
  • Start date Start date
P

Paul D. Fox

What causes the TextBox control to not show the changed value when I use
"TextBox.Text" ? I pre-populate it from a database, then allow the user to
change its value. When I get the value, it shows the old value.

Paul
 
Hi,
Please make sure your pre populate code is within if( !IsPostBack )
block. Otherwise, everytime the page is posted back, the text box would
be loaded with the value from the database.

Thanks,
Arun Prakash. B
 

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

Back
Top