I was wondering if when developing custom controls in asp.net that need client script if it is better to emit the script inline with the code or to use a script file that the page can refer to. Any ideas would be much appreciated.
On a side note, if you have no more than 5-10 lines of code, I wouldn't worry about it. Just stick it on the page since that's the simplest method. The real reasons to separate script into its own file is for performance and/or maintainability... well, and all the other *ilities, as well