title: Linking a CSS Stylesheet with an ASP.NET Custom Control
body: <p>I'm developing a custom control which is a composition of tables and buttons. I also have an external CSS stylesheet that defines the styles for these elements.</p>
  
  <p>The Control's type is <strong>CompositeControl</strong>, under namespace <strong>MyControls</strong> and the definition of the class is in a class file <strong>CompositeControl.cs</strong> and the dll file generated is named <strong>MyControls.dll</strong></p>
  
  <p>The stylesheet is called <strong>styles.css</strong> and is in the same folder as CompositeControl.cs</p>
  
  <p>For each control (Button, TableCell, etc.), I have specified the <code>CssClass</code> property.</p>
  
  <p>When I add this control to my ASP.NET webpage and check the HTML source when run at localhost, I see all the control tags have the class attribute correctly set, but the source doesn't include the <code>&lt;link&gt;</code> tag which is necessary for including an external stylesheet. </p>
  
  <p>Could someone tell me what else I need to do to make this work? Thanks.</p>