Embedded JavaScript doesn't work
<p>I have embedded JavaScript in ASP.NET application:</p>

<pre><code>function HelloFromEmbedded()
{
    window.alert('Hello from embedded resource.');
}
</code></pre>

<p>In AssemblyInfo.cs file:</p>

<pre><code>[assembly: WebResource("JavaScript1.Scripts.EmbeddedJavaScript.js", "text/javascript", PerformSubstitution = true)]
</code></pre>

<p>This is my ASP.NET web page:</p>

<pre><code>protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);

    ClientScript.RegisterClientScriptInclude("EmbeddedJS", ClientScript.GetWebResourceUrl(this.GetType(), "JavaScript1.Scripts.EmbeddedJavaScript.js"));
}
</code></pre>

<p>I'd like to use embedded JavaScript in onmouseover event of text box in ASP.NET web page:</p>

<pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" onmouseover="HelloFromEmbedded();"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>But, it doesn't work. I can't see why.</p>
