Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScript", "javascript:TestJavascriptFunction();", true);