What is the most effective way to register a stylesheet only once on a page using a custom web control? Keep in mind that the page utilizes an UpdatePanel for asynchronous calls. I attempted placing the <link>
tag in ScriptManager.RegisterClientScriptBlock(), but encountered the following error:
The script tag registered for type 'MyControl' and key 'MyKey' contains invalid characters outside of the script tags. Only properly formatted script tags can be registered.
Adding the stylesheet to the control hierarchy results in it being displayed multiple times, once for each instance of my control on the page.