Textbox not updating

In many cases, you can avoid this problem by setting the Enable View State property of the container control to false. From MSDN documentation: If you reinsert controls with each round trip, each generation of dynamically created controls will pick up property values from the view state of the preceding set of controls.

textbox not updating-15textbox not updating-6

You can leave a response, or trackback from your own site.

When the webform is first called and 'Search' is clicked it works fine, but when the dropdown options are changed and 'Search' clicked again, the labels change to the correct values but the textboxes retain their previous values. When the webform is first called and 'Search' is clicked it works fine, but when the dropdown options are changed and 'Search' clicked again, the labels change to the correct values but the textboxes retain their previous values.

What's even stranger is that I explored the problem by creating labels instead of textboxes for the second column, and they updated correctly, as did using buttons, so it seems to be an issue only with textboxes not updating. What's even stranger is that I explored the problem by creating labels instead of textboxes for the second column, and they updated correctly, as did using buttons, so it seems to be an issue only with textboxes not updating.

The first thing you need to know in order to understand why this is happening, is that the Text Box control only updates the Text binding source when the control looses focus.

Second reason is that the Application Bar control can’t get focus, nor can it’s Application Bar Icon Button or Application Bar Menu Item controls, so when you tap on them, the click event will be invoked without the Text Box control ever loosing focus!