Umbraco: Handling In Page Javascript in Uswe Controls

Posted by Burt on Stack Overflow See other posts from Stack Overflow or by Burt
Published on 2010-06-11T13:46:46Z Indexed on 2010/06/11 13:53 UTC
Read the original article Hit count: 262

Filed under:
|
|

I have quite a number of user controls that I need to embed in Umbraco macros. Each user control has quite a bit of in page javascript that needs loaded into the page.

I have been building up the javascript with StringBuilder.Appendline then registering a startup script with code behind but this stinks and I feel there has to be a better way of going about this.

Has anyone any ideas please?

Thanks,

B

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript