Calling JavaScript Function From CodeBehind

ssmsnet picture ssmsnet · Apr 20, 2011 · Viewed 715.7k times · Source

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

Answer

mutanic picture mutanic · Oct 30, 2012

You may try this :

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