iis - asp.net server tags not resolving before being sent to client -


i have webforms site experiencing issues. looking in firebug, can see following line in master page:

<link rel="stylesheet" href='<%= resolveclienturl("/css/site.css") %>' /> 

is not "executing" on server. therefore, in firebug getting:

http://www.mysite.com/master_pages/%3c%25=%20resolveclienturl(%22/css/site.css%22)%20%25%3e

when expect be

http://www.mysite.com/css/site.css

this has worked fine previously, , i've used technique on other sites , never had problem, can't see why has stopped working. i've double checked , head set runat=server:

<head runat="server">

so should executing on server. i've tried changing to:

 <link rel="stylesheet" href=<%= resolveclienturl("/css/site.css") %> runat="server" /> 

other things i've checked:

  • that application pool , website both targeting correct , same instance of .net framework
  • that application pool has been recycled ensure clear
  • that can hit break-points in code behind

can suggest may causing or things can check?

thanks

try this.

<link rel="stylesheet" type="text/css" href="css/site.css" /> 

this should work.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -