There is a way - a hack really - to access it using "server side code". But
the code must run in the aspx page as server-side script blocks. Here is a
complete test example:
<body MS_POSITIONING="GridLayout">
<script>
function test(){
alert('hello world');
}
</script>
<form id="Form1" method="post" runat="server">
<%
Response.Write("<script>test()</script>");
%>
</form>
</body>
This qualifies as a partial solution only because it isn't truly code
behind. Some situations, though rare, require that sort of programming. I'd
recommend that you modify your architecture to use attributes or script
registration like Hermit suggested. It's a cleaner, more object oriented way
of programming which makes for easier maintenance since programmers
examining codebehind aren't normally aware of server side script blocks in
an aspx page. If you absolutely must, consider documenting that sort of
behavior thoroughly.