What is the best method to register a stylesheet once on a page from a customer web control? Please keep in mind that the page uses an UpdatePanel for async calls. I tried just putting the <link>
tag in ScriptManager.RegisterClientScriptBlock(), but I get this error:
The script tag registered for type 'MyControl' and key 'MyKey' has invalid characters outside of the script tags: . Only properly formatted script tags can be registered.
If I try to add it to the page by adding it to the control hierarchy, it shows up once for each instance of my control on the page.