• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • Last Modified:

How do I get an ASP.NET (C#) textbox to update the number added on a button click. I have to click button twice.

I have a textbox that contains the quantity of the item.  I set the auto postback to true, but when I change the value or number in the box,  the value does not update until the button is clicked a second time

Thanks for any help!
1 Solution
If you have taken, Button control and fired its Button_Click() event in code behind, then it is not needed to set autopostback ="true".
Because by default, button click fires server side event.
Obadiah ChristopherCommented:
Where is not updating?

Hav u checked the


in the pageload event?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now