M
MarkShoe
Hi,
I have an aspx with a control on it, lets call it myControl, and I have an
external javascript file.
In the external javascript file, I have
var myControlId = '<%=myControl.ClientID%>';
which would work fine if the javascript was in the .aspx file, but when
adding the external javascript file via
Page.ClientScript.RegisterClientScriptInclude, the myControl.ClientID does
not get replaced with the client id.
I'm sure I've seen a way to do this before, can someone point me in the
right direction?
Thanks
Mark
I have an aspx with a control on it, lets call it myControl, and I have an
external javascript file.
In the external javascript file, I have
var myControlId = '<%=myControl.ClientID%>';
which would work fine if the javascript was in the .aspx file, but when
adding the external javascript file via
Page.ClientScript.RegisterClientScriptInclude, the myControl.ClientID does
not get replaced with the client id.
I'm sure I've seen a way to do this before, can someone point me in the
right direction?
Thanks
Mark