Page.ClientScript.RegisterStartupScript( GetType(), "MyKey", "myFunction();", true);
<script type="text/javascript"> function myFunction() { debugger; } </script> But I got JavaScript runtime error: 'myFunction' is undefined. What's wrong in my code? Thanks.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MyKey", "myFunction();", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)