When developing a web user control, I'm styling everything with CSS. Whenever I look at the control in the designer, none of the CSS is rendered, or course, because I'm not looking at it in the context of the page where my link element is declared to my CSS file. Plus, Visual Studio will include a warning:
The class or CssClass value is not defined.
for every class attribute I use.
I can get the designer to render the CSS if I include a link element in the control itself, but then I have duplicate link elements scattered throughout my pages.
Is there any way to get the designer to play nice with my CSS in a web control without injecting duplicate link elements everywhere?