In our master page, we put a contentplaceholder tag between the HTML head
tags, then we stuff the scripts in there. Also, if you build a server
control, you can set up the scripts as a resource and override the OnLoad
like this:
protected override void OnLoad(EventArgs e)
{
Type t = this.GetType();
String js = "MyNameSpace.WebControls.MyJavaScript.js";
String url = Page.ClientScript.GetWebResourceUrl(t, js);
Page.ClientScript.RegisterClientScriptInclude(t, js, url);
base.OnLoad(e);
}
The nice thing about this is it packages it in your dll. Hope this helps.
Diane
"Sam Carleton" wrote:
>
> Jacob wrote:
> > Try using Google Maps control from this site:
> > http://www.reimers.dk/
>
> That is great, but... I would like to *UNDERSTAND* how to do it
> myself, the source code to the control at that link is not available
>
> Sam
>
>