G
Guest
I was able to do this in .asp but not asp.net, can someone please help.
I have a multi-line textbox control on a webform. Next to it is a label
control. Basically I want the label control to automatically reflect the
contents of the textbox control. I did this through script before. The
following is the script I am using now.
<script language=javascript>
setInterval('UpdateMemoDisplay()', 1000);
function UpdateMemoDisplay() {
lablCause.innerHtml = formDownTime.textCause.innerText;
formDownTime.textResolution.innerText = formDownTime.textCause.innerText;
}
</script>
The first line of the function doesn't work but the second one does. Of
course the second one does me no good, I just put it in there to make sure I
wasn't crazy. So if I can update another TextBox, why can I not update a
Label control? I realize it is technically a Span but I would expect it to
work.
Any suggestions or insite on why it doesn't and can't work?
I have a multi-line textbox control on a webform. Next to it is a label
control. Basically I want the label control to automatically reflect the
contents of the textbox control. I did this through script before. The
following is the script I am using now.
<script language=javascript>
setInterval('UpdateMemoDisplay()', 1000);
function UpdateMemoDisplay() {
lablCause.innerHtml = formDownTime.textCause.innerText;
formDownTime.textResolution.innerText = formDownTime.textCause.innerText;
}
</script>
The first line of the function doesn't work but the second one does. Of
course the second one does me no good, I just put it in there to make sure I
wasn't crazy. So if I can update another TextBox, why can I not update a
Label control? I realize it is technically a Span but I would expect it to
work.
Any suggestions or insite on why it doesn't and can't work?