Asp net textbox value not updating on postback

Posted by / 06-Apr-2020 07:22

This solution will only work for a Textbox , but if its a html textbox then after the calculation you need to reassign the session value to the textbox as reach_yousuf the alerts to check the contents of the session.

So as we know the page is recreated every time page makes a trip to the server, the data persistence is done with the help of viewstate.

You can read the data from the form collection by using the following code snippet , whether viewstate is on or not, it gets populated from the posted data.

That’s why the data get persisted even if viewstate is set to off for few controls.

there is only one Solution to this , is to use the flickering of the page causes this, what you need to do, is to add a scriptmanager to your page and add an updatepanel and add the textbox inside the Update panel.

This solution will only work for a Textbox , but if its a html textbox then after the calculation you need to reassign the session value to the textbox as reach_yousuf the alerts to check the contents of the session. there is only one Solution to this , is to use the flickering of the page causes this, what you need to do, is to add a scriptmanager to your page and add an updatepanel and add the textbox inside the Update panel.

asp net textbox value not updating on postback-4asp net textbox value not updating on postback-67asp net textbox value not updating on postback-55

I don't know whether you noticed this problem already.