Does anyone have a code snippet for calling a JavaScript function from C#?
Here's the scenario:
I have an ASP.NET page with an ASP button. When this button is clicked, I want to call a JavaScript function.
For example:
In my ASP.NET page,
<button id="save" onclick="I want to call a method located in the ASP.NET page'>Save</button>
Further details... When the ASP.NET button is clicked, I need to perform a server-side action and then call a JavaScript function directly from there...