Author: allendehl | Posted on: 9/18/2008 11:05:04 AM | Views : 365

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)

Any idea on this? 

 

 
...

Go to the complete details ...