I am developing a user control (ascx) in ASP.NET which uses javascript for manipulating controls. Currently the javascript code is inlined and uses <%= somecontrol.
<%= somecontrol.
What about a hidden variable:
Then from your js:
$("#" + $("#ClientID").val())
Or, put the hash in:
... $($("#ClientID").val())