![How to execute javascript code from code behind file in asp.net (c#) on button click(not placed under update panel).](https://4.bp.blogspot.com/-O3EpVMWcoKw/WxY6-6I4--I/AAAAAAAAB2s/KzC0FqUQtkMdw7VzT6oOR_8vbZO6EJc-ACK4BGAYYCw/w680/nth.png)
RegisterClientScriptBlock
February 11, 2023
How to execute javascript code from code behind file in asp.net (c#) on button click(not placed under update panel).
![Aman Sharma](https://4.bp.blogspot.com/-uCjYgVFIh70/VuOLn-mL7PI/AAAAAAAADUs/Kcu9wJbv790hIo83rI_s7lLW3zkLY01EA/s100/avatar.png)
You can use following function to execute javascript code from code behind file in asp.net using c#. **when you a…