How to call Javascript (client-side) script from asp.net server-side script

0 votes
How to call Javascript (client-side) script from asp.net server-side script

 

I am trying to call one javascript method on page load from asp.net.
asked Jan 28, 2013 by inquirer (710 points)
    

1 Answer

0 votes
 
Best answer
ScriptManager.RegisterStartupScript(this, this.GetType(), "onload", "CallMyJavascriptFunction();" /* Your Javascript function name */, true /* Automatically adds script tag */);
answered Jan 28, 2013 by analyst (3,200 points)
selected Jan 28, 2013 by inquirer
...