Search code examples
javascript.netasp.netcode-behind

Calling JavaScript function at the end of button click event


How do you call a JavaScript function at the end of button click event in code behind?


Solution

  • If you're working in .NET you could try

    ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);