<p>In a html page we use the head tag to add reference to our external .js files .. we can also include script tags in the body .. But how do we include our external .js file in a web user control?</p>

<p>After little googling I got this. It works but is this the only way?</p>

<pre><code>ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "MyUniquekey", @"&lt;script src=""myJsFile.js"" type=""text/javascript""&gt;&lt;/script&gt;", false);
</code></pre>

<p>-- Zuhaib</p>

You can also use
```
```
Page.ClientScript.RegisterClientScriptInclude("key", "path/to/script.js");
```
```
That's the way I always do it anyway