I'm trying to pass a value for further processing using a form element, lblHiddenControl. This is a .NET server control, so there is no "name" attribute, just an "id." When I use the following code, I get the error message, "Object doesn't support this property or method."
if (window.document.getElementById("lblHiddenControl"
) {
alert (document.frmProfile.getElementById("lblHiddenControl"
.value);
}
When I do a View Source, this is the HTML code I see for this object: <span id="lblHiddenControl">txtLogin</span>
How can I get the vlaue of this control?
if (window.document.getElementById("lblHiddenControl"
alert (document.frmProfile.getElementById("lblHiddenControl"
}
When I do a View Source, this is the HTML code I see for this object: <span id="lblHiddenControl">txtLogin</span>
How can I get the vlaue of this control?