Calling JavaScript Function From CodeBehind


Can someone provide good examples of calling a JavaScript function From CodeBehind and Vice-versa?


Answers:


You may try this :

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);