crazyboybert
Programmer
Hi All
I have a asp:textbox on my page which may or may not have a value when the page is loaded. When a html radio button elsewhere in the form is clicked clientside javascript is used to set the value of the textbox using..
document.getElementById(textboxID).value = value;
The form is then submitted using Javascript. On the server the value of the textbox is accessed via the textboxID.Text property.
This works fine in IE where the new value given to the textbox with javascript persists to the server.However with Netscape 6.0 this value dissappears. If I alert the value clientside after it has been reassigned it matches the new value as normal but this new value is not reflected in the textbox.Text property when it reaches the server.
Has anyone experienced this sort of problem with NS? Is there something I can do to workaround - or does Netscape dynamically update the textbox in such a fashion that its value is not avaiable via the Text property?
Bizarrely if I request the value of the textbox on the server using
then it is there as would be expected....
Any thoughts greatly appreciated as this one has me stumped!
Cheers
Rob
------------------------------------
Go placidly amidst the noise and haste,
find what peace there may be in silence.
-Anon
------------------------------------
I have a asp:textbox on my page which may or may not have a value when the page is loaded. When a html radio button elsewhere in the form is clicked clientside javascript is used to set the value of the textbox using..
document.getElementById(textboxID).value = value;
The form is then submitted using Javascript. On the server the value of the textbox is accessed via the textboxID.Text property.
This works fine in IE where the new value given to the textbox with javascript persists to the server.However with Netscape 6.0 this value dissappears. If I alert the value clientside after it has been reassigned it matches the new value as normal but this new value is not reflected in the textbox.Text property when it reaches the server.
Has anyone experienced this sort of problem with NS? Is there something I can do to workaround - or does Netscape dynamically update the textbox in such a fashion that its value is not avaiable via the Text property?
Bizarrely if I request the value of the textbox on the server using
Code:
Request.Form[i].ToString()
Any thoughts greatly appreciated as this one has me stumped!
Cheers
Rob
------------------------------------
Go placidly amidst the noise and haste,
find what peace there may be in silence.
-Anon
------------------------------------