How do I use RegisterClientScriptBlock to register JavaScript?
<p>ASP.NET 2.0 provides the <code>ClientScript.RegisterClientScriptBlock()</code> method for registering JavaScript in an ASP.NET Page.</p>

<p>The issue I'm having is passing the script when it's located in another directory.  Specifically, the following syntax does not work:</p>

<pre><code>ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", "../dir/subdir/scriptName.js", true);
</code></pre>

<p>Instead of dropping the code into the page like <a href="http://msdn.microsoft.com/en-us/library/aa479390.aspx#javawasp2_topic7" rel="nofollow">this page</a> says it should, it instead displays <code>../dir/subdir/script.js</code> , my question is this:</p>

<p>Has anyone dealt with this before, and found a way to drop in the javascript in a separate file?  Am I going about this the wrong way?</p>
