I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
While pranay's answer is correct in the function call, the rest is off, here's hopefully a better explanation: You can use
The format is If you are operating with an UpdatePanel, it's very similar, except you need to use the slightly different |
|||
|
JavaScript is a client side technology. While I suppose it would be theoretically possible to run the code on the server I don't see what benefit it would give you. What do you actually want to achieve? |
|||||
|