服务器端注释:什么是的&LT相当于;% - - %GT;在ASP经典? [英] Server-side comments: What's the equivalent of <%-- --%> in ASP Classic?
问题描述
什么的&LT相当于;% - - %GT;
中的 ASP经典?
我要修改传统的ASP应用程序,我想注释掉HTML块:
&LT; TD&GT;
我想了一些表格单元格中注释掉,包括
一些&LT;%= inlineServerSideVBScriptEx pressions()%GT;
&LT; / TD&GT;
在结束语一切&LT;% - ...... - %&GT;
,因为我想在ASP.NET做,不能正常工作和结果编译错误预期声明。 HTML注释&LT;! - ... - &GT;
是不是一种选择,因为相关内嵌ASP前pressions将得到评估和失败。 p>
有没有内置的方式做在ASP经典块注释。你必须把
你不想跑的每一行之前。
What's the equivalent of <%-- --%>
in ASP Classic?
I have to modify a legacy ASP application and I'd like to comment out a block of HTML:
<td>
some table cell I'd like to comment out, including
some <%= inlineServerSideVBScriptExpressions() %>
</td>
Wrapping everything in <%-- ... --%>
, as I'd do in ASP.NET, doesn't work and results in the compilation error "Expected statement". HTML comments <!-- ... -->
are not an option either, since the inline ASP expressions would get evaluated and fail.
There's no "built-in" way to do block comments in ASP Classic. You have to put a '
before each line you don't want to run.
这篇关于服务器端注释:什么是的&LT相当于;% - - %GT;在ASP经典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!