Calling javascript from a code behind vs. calling a code behind from javascript
<p>I have a web application that will need to access code behind methods as well as javascript methods.  For this particular implementation it doesn't really matter which order they are called in from a program flow perspective.</p>

<p>I'm looking for insight into when it would be appropriate to use a code behind to call javascript and when it would be appropriate to call javascript from a code behind.  Are there any ramifications of doing it one way or the other that I should be aware of before moving forward with an implementation?</p>

<p>Is there a best practice way to do it or is it very specific to the actual implementation?</p>
