问题描述:
在asp.net的webform里面,如果头部用数据绑定<%%>,页面输出的结果往往不是我们想要的,比如像下面这样:
能够正常生产和运行,但是生成的内容却是:
解决办法:
改种写法:
href=<%= config.resourcesdomain %>/images/style.css
或者:
参考: <http://stackoverflow.com/questions/8104268/inline-code-in-head-tag-asp-net>