I have a small working application in ASP.NET and C#, and I would like to add some JavaScript code to it.
I know that, for example, I can use the Confirm button and then do something on Yes or No.
I would like to call some of the functions I have in the code-behind, depending on the answer to the Confirm button.
How do I go about this?
Simple.
Put a hidden div on your .aspx page that contains button triggers to your methods:
In your JavaScript code, in the confirm part of your code, simply do:
And in your code-behind, handle up that button click to call Method1.