How can I call a javascript function, that is in the aspx page, from the Page_Load method, in the code-behind?
Please try this code:
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "MyFun1", "test();", true);