title: Run code in CSS file in ASP.net
body: <p>In my CSS file I would like to have definitions such as:</p>
  
  <pre><code>.hr {
      background:url('&lt;%=CommonFunctions.AllocateStaticPath("/images/hr.png") %&gt;');
      width: 100%;
      height: 2px;
      margin: 40px 0;
  }
  </code></pre>
  
  <p>This would be useful to me, as the path to each image differs on the production server and the development server and the function correctly sets the resources path.  Being able to do this would simplify my publishing process.</p>
  
  <p>How can I enable IIS7 to run ASP.net on CSS files?  I've tried renaming the CSS file to <code>.ashx</code> and creating a rewrite rule but this seems to always 404. </p>