title: Is it possible to register 2 stylesheets via RegisterClientScriptBlock in an ASP.NET Custom Control (C#)?
body: <p>I'm working on an ASP.NET Custom Control that uses a lot of JavaScript and CSS.  For maintenance purposes, it is easier to keep the files separate.  Before I declare my namespace, I've got the following code:</p>
  
  <pre><code>[assembly: WebResource("MyNamespace.Styles.colorbox.css", "text/css", PerformSubstitution = true)]
  [assembly: WebResource("MyNamespace.Styles.pagination.css", "text/css")]
  </code></pre>
  
  <p>The CSS files are obviously in a subfolder called Styles.  I'm trying to register them in the OnInit of my page using the following code:</p>
  
  <pre><code>// Register colorbox css
  cssColorbox = "&lt;link href=\"" + Page.ClientScript.GetWebResourceUrl(typeof(DoctypeSelectorControl), "MyNamespace.Styles.colorbox.css") + "\" type=\"text/css\" rel=\"stylesheet\" /&gt;";
              this.Page.ClientScript.RegisterClientScriptBlock(typeof(DoctypeSelectorControl), "cssFile", cssColorbox, false);
  
  // Register pagination css
  cssPagination = "&lt;link href=\"" + Page.ClientScript.GetWebResourceUrl(typeof(DoctypeSelectorControl), "MyNamespace.Styles.pagination.css") + "\" type=\"text/css\" rel=\"stylesheet\" /&gt;";
              this.Page.ClientScript.RegisterClientScriptBlock(typeof(DoctypeSelectorControl), "cssFile", cssPagination, false);
  </code></pre>
  
  <p>The first one loads up perfectly, but I don't even see a link for the second (pagination.css).  I wasn't sure if this was limited to one file this way or if there's a better way to handle this. </p>
  
  <p>FYI: DoctypeSelectorControl is the name of the class if it wasn't obvious.</p>
  
  <p>Thanks for your help!</p>