I want to add javascript in header on page load. The javascript has to be defined in separate class.
How do I make following to work:

PHP Code:
public class JavascriptCSS
{
    public static 
HtmlGenericControl GoogleAPI()
    {
        
HtmlGenericControl javascript = new HtmlGenericControl("script");

        
javascript.Attributes.Add("type""text/javascript");
        
javascript.Attributes.Add("src""http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js");

        return 
javascript;
    }

PHP Code:
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "GoogleAPI"JavascriptCSS.GoogleAPI(), true);