i have been reading this interesting article which is increasing my every growing confusion about best practices in MVC
link text
and there is a very hot debate about wither to inject JavaScript and HTML Tags using an HTMLHelper or putting it in User control.
what do you advise ?
in case you advise putting it in user Control, how can you make it generic and use it in different views and keep testability ?
Concerning javascript I would say that none of the methods seems suitable for me. I am a big fan of unobtrusive javascript, so I always prefer just adding a script tag in the beginning of my page and not writing a single line of js in helpers or user controls.