ViewState and Enabled property in a textb
-
HI friends, I have a web form with several controls I'm posting to a database. For two of them(textboxes) I'm looking up the values using a popop window, so the user cannot edit the actual textboxes values, they have to go through the lookup process, which populates the controls. What is happening is that everytime I set the readonly=true or the enabled=false for these textboxes, the ViewState seems to not store their corrent values. In both cases when I do the postback and the page comes back, the control shows up the the previous value, not the one I posted back with the page otherwise it will show the correct value(readonly = false; enabled = true) This is the asp.net code for the textboxes: Any idea on this?
-
HI friends, I have a web form with several controls I'm posting to a database. For two of them(textboxes) I'm looking up the values using a popop window, so the user cannot edit the actual textboxes values, they have to go through the lookup process, which populates the controls. What is happening is that everytime I set the readonly=true or the enabled=false for these textboxes, the ViewState seems to not store their corrent values. In both cases when I do the postback and the page comes back, the control shows up the the previous value, not the one I posted back with the page otherwise it will show the correct value(readonly = false; enabled = true) This is the asp.net code for the textboxes: Any idea on this?
I think that's not the issue Issue might is with updating the text box with new value. Debug the application by putting break points and check what is happenig
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog