How can I call a javascript function, that is in the aspx page, from the Page_Load method, in the code-behind?
Why would you want to do this? What's the purpose?
Anyway you can do the following, but I DON'T recommend it!!! :
protected void Page_Load(object sender, EventArgs e)
{
string pagename = "Test.aspx";
String scriptString = "";
if(!this.IsStartupScriptRegistered("Startup")) //This is **not** a good practice
this.RegisterStartupScript("Startup", scriptString);
}
Can you supply with more information of what you want to achieve to get better answer..