User475983607 posted
JavaScript files are text files, not part of the ASPX page, and not processed by the framework.
Use standard programming techniques . The simplest is passing the id to the function.
function fcn_variable(id)
{ var myvariable = id;
return myvariable;
}
In the aspx page.
<script language="javascript" type="text/javascript">
var myvariable = fcn_variable('<%=Form_Label.ClientID%>');
</script>