Monday, December 20, 2010

Execute JavaScript in ASP.NET Code Behind

If you want to execute JavaScript in code behind for example after an event, you can:

ScriptManager.RegisterStartupScript(this, GetType(), "anyName", "myScript();", true);

No comments: