C
cowznofsky
I am migrating an app from VS2003 to VS2005
There are some public variables in the page behind code that are
referenced in javascript blocks at various places in the html. But
they're not working anymore.
For example, we have an activex control, and we want to use it's id
within script
In the page behind code:
Public ReadOnly Property MyActiveXId() As String
Get
Return '" MyActiveX.ClientID "
End Get
End Property
and in the javacript:
var oViewer = document.forms[0][<%=MyActiveXid%>];
This code evidently used to work, but now causes the error "Object
Reference not set to an object".
(Also mind-numbing is that the error occurs on this line even when
I've commented it out.)
There are some public variables in the page behind code that are
referenced in javascript blocks at various places in the html. But
they're not working anymore.
For example, we have an activex control, and we want to use it's id
within script
In the page behind code:
Public ReadOnly Property MyActiveXId() As String
Get
Return '" MyActiveX.ClientID "
End Get
End Property
and in the javacript:
var oViewer = document.forms[0][<%=MyActiveXid%>];
This code evidently used to work, but now causes the error "Object
Reference not set to an object".
(Also mind-numbing is that the error occurs on this line even when
I've commented it out.)