|
Recently, I had a project where I was wanting to be able to create a reusable UserControl to display tooltips throughout the application. The control would need to access the jQuery framework, a jQuery plugin, required some inline scripting, and had its own class of styles. Not every page in the application would have tooltips but the pages that did use them would have a lot of them. If I added all the references to the JavaScript and styles in the Master page, I would be introducing unnecessary bloat for the majority of the application. So, I needed a way to request these resources in the UserControl so they would only be added to the page "on demand". As you might image, adding them directly into the UserControl would mean that the...
|