C
CsaaGuy
I have a requirement to disable some textboxs depending on their
contents. I choose to do this by invoking some javascript. When they
change the contents, i disable the textbox they just put new data into
and focus on another textbox.
My logic works fine, the textboxes get disabled.
However, when the page posts back, the disabled textbox contents (which
were changed before disabling) DOES NOT GO BACK TO THE SERVER. The
server gets the old value instead. I have found some references to this
but I would like to hear some other peoples experences with this. Is it
solveable?
I can solve this by using the Vb.net enable property instead but it
requires a postback which i trying to advoide.
A related queston. VB.net textboxs have their own enable property. The
dom object has it's disabled property. It's the dom object disabled
propety that is causing this behavior. So the quesiton is, can i set
the vb.net textbox.enable property instead of the dom object's version
from Javascript? This would also solve my problem.
contents. I choose to do this by invoking some javascript. When they
change the contents, i disable the textbox they just put new data into
and focus on another textbox.
My logic works fine, the textboxes get disabled.
However, when the page posts back, the disabled textbox contents (which
were changed before disabling) DOES NOT GO BACK TO THE SERVER. The
server gets the old value instead. I have found some references to this
but I would like to hear some other peoples experences with this. Is it
solveable?
I can solve this by using the Vb.net enable property instead but it
requires a postback which i trying to advoide.
A related queston. VB.net textboxs have their own enable property. The
dom object has it's disabled property. It's the dom object disabled
propety that is causing this behavior. So the quesiton is, can i set
the vb.net textbox.enable property instead of the dom object's version
from Javascript? This would also solve my problem.