Sunday, March 27, 2011

Javascript and User Controls in C#

I have some JS functions within the ASCX of a user control. This UC is loaded multiple times in the host page. When I do a view source, I see the JS repeated for every instance of the UC.

Is there a way I can have it load the functions only once? I would like to reduce the size of the page for better performance

From stackoverflow

0 comments:

Post a Comment