<p>I have an old ASP.NET 1.1 site that I am maintaining.  We are working with Google to place analytics code on all pages.  Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with User Controls.</p>

<p>What came to mind first is to place the JavaScript in my footer ascx control so it appears on every page.  But I don't think I can link to a JavaScript file from a user control.  </p>

<p>Any ideas on what I can do to get this js code placed on every page in my site?</p>

What keeps you from simply referencing your script in the user control?
```
```
<asp:SomeControl ID="SomeControl1" runat="server>
  <script src="some.js" type="text/javascript"></script>
</asp:SomeControl>
```
```
You could also do this:
```
```
protected void Page_Load(object sender, EventArgs e)
{
  Literal some_js = new Literal();
  some_js = "<script type='text/javascript' src='some.js'></script>";
  this.Header.Controls.Add(some_js);
}
```
```
(Obviously, the second approach would still force you to modify the pages themselves, unless they inherit from a common parent you control.)