title: Single quote(') and double quote (") strange behavior in ASP.NET
body: <p>I have some questions regarding quotes usages.
  For example, when i load a script or css in asp double quotes work fine, i use it like:</p>
  
  <pre><code> &lt;link href="&lt;%= Page.ResolveClientUrl("~/Styles/Site.css") %&gt;" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>But when i try to use the same same thing on a <code>background-image</code> it's not working as expected. Gives me an error:</p>
  
  <blockquote>
    <p>The funtion arguments are unclosed, ')' expected</p>
  </blockquote>
  
  <pre><code>  background-image: url("&lt;%= Page.ResolveClientUrl("~/Content/image.jpg")%&gt;"); 
  </code></pre>
  
  <p>Also, when i try to use the code specified above, visual studio highlights the <code>Page.ResolveClientUrl</code> correctly.</p>
  
  <p>I fixed the above error by using single quotes (`), like:</p>
  
  <pre><code> background-image: url('&lt;%= Page.ResolveClientUrl("~/Content/image.jpg")%&gt;') 
  </code></pre>
  
  <p>It works fine, but visual studio doesn't highlight it as expected (I'm using the black background and the server tags <code>&lt;% %&gt;</code> are white on a yellow background and the text between the tags is white).</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>Why is it working with double quotes when loading scripts, but not when loading images within the <code>background-image</code> element.?</p></li>
  <li><p>Why does visual studio highlight is as it's not server code?</p></li>
  <li><p>What are other use cases where we should use single quotes instead of double quotes as in the above example?(except for string formatting as specified in the link below). One, two examples might be enough.</p></li>
  </ol>
  
  <p>PS: I've read the difference between single and double quotes post (from <a href="https://stackoverflow.com/questions/7433729/difference-between-single-quote-and-double-quote-in-asp-net-4">here</a>) but this doesn't apply here.</p>