行内标签在一个asp.net母版页不执行 [英] Inline tag not executing in an asp.net master page
问题描述
这确实应该是这么简单...
This really should be so very simple...
我有正按预期运行一个asp.net母版页。它包括一些ASP:标签没有任何问题。
I have an asp.net master page which is working as expected. It includes some asp: tags without any problems.
母版页还包括行
<link rel="stylesheet" type="text/css" href="css/main.css?v=<%=variableName%>" />
这是不执行。输出HTML有这样的
which is not executing. The output HTML has this as
<link rel="stylesheet" type="text/css" href="css/main.css?v=<%=variableName%>" />
我不asp.net的工作非常多,所以希望我错过了一些东西超级简单。关于如何从被HTML-CN codeD停止我的内联ASP标记任何suggesions?
I do not work in asp.net very much so hopefully I have missed something super simple. Any suggesions on how to stop my inline asp tags from being HTML-encoded?
非常感谢。
修改
因此,它只是变得愚蠢
So it just gets sillier
本作品:的href =CSS /的main.css V =&LT;%:VARIABLENAME%&gt;中
和输出的href =CSS /的main.css?v = VARIABLENAME
然而,这并不: HREF =CSS /的main.css V =&LT;%:VARIABLENAME%GT;
和输出 HREF =CSS /的main.css v =&放大器; LT;%:VARIABLENAME%GT;
However this doesn't: href="css/main.css?v=<%:variableName%>"
and outputs href="css/main.css?v=<%:variableName%>"
认真我从来没有想过我会这样说,但PHP使得WAYYY更有意义!
Seriously I never thought I would say it but PHP makes WAYYY more sense!
推荐答案
试试这个
更新: &LT;链接rel =stylesheet属性类型=文/ CSS的href =&LT;%=?的CSS /的main.css V = +34%GT; /&GT;
这篇关于行内标签在一个asp.net母版页不执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!