Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 992
Chetan Avatar asked Oct 29 '25 14:10

Chetan


1 Answers

If you're working in .NET you could try

ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
like image 165
wegrata Avatar answered Nov 01 '25 03:11

wegrata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!