Note that there are some explanatory texts on larger screens.

plurals
  1. POasp.net server tags not resolving before being sent to client
    text
    copied!<p>I have a WebForms site which is experiencing issues. Looking in Firebug, I can see that the following line in my master page:</p> <pre><code>&lt;link rel="stylesheet" href='&lt;%= ResolveClientUrl("/css/site.css") %&gt;' /&gt; </code></pre> <p>is not "executing" on the server. Therefore, in Firebug I am getting:</p> <blockquote> <p><a href="http://www.mysite.com/Master_Pages/%3C%25=%20ResolveClientUrl(%22/css/site.css%22)%20%25%3E" rel="nofollow">http://www.mysite.com/Master_Pages/%3C%25=%20ResolveClientUrl(%22/css/site.css%22)%20%25%3E</a></p> </blockquote> <p>when I would expect this to be</p> <blockquote> <p><a href="http://www.mysite.com/css/site.css" rel="nofollow">http://www.mysite.com/css/site.css</a></p> </blockquote> <p>This has worked fine previously, and i've used this technique on other sites and never had a problem, but can't see why this has suddenly stopped working. I've double checked and my head is set to runat=server:</p> <p><code>&lt;head runat="server"&gt;</code></p> <p>so it should be executing on the server. I've also tried changing it to:</p> <pre><code> &lt;link rel="stylesheet" href=&lt;%= ResolveClientUrl("/css/site.css") %&gt; runat="server" /&gt; </code></pre> <p>Other things I've checked:</p> <ul> <li>That the application pool and website are both targeting the correct and same instance of the .net framework</li> <li>That the application pool has been recycled to ensure its clear</li> <li>That I can hit break-points in my code behind</li> </ul> <p>Can anyone suggest what may be causing this or what things I can check?</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload