服务器端注释:什么是的&LT相当于;% - - %GT;在ASP经典? [英] Server-side comments: What's the equivalent of <%-- --%> in ASP Classic?

查看:173
本文介绍了服务器端注释:什么是的&LT相当于;% - - %GT;在ASP经典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么的&LT相当于;% - - %GT; 中的 ASP经典

我要修改传统的ASP应用程序,我想注释掉HTML块:

 < TD>
    我想了一些表格单元格中注释掉,包括
    一些<%= inlineServerSideVBScriptEx pressions()%GT;
< / TD>

在结束语一切<% - ...... - %> ,因为我想在ASP.NET做,不能正常工作和结果编译错误预期声明。 HTML注释<! - ... - > 是不是一种选择,因为相关内嵌ASP前pressions将得到评估和失败

解决方案

有没有内置的方式做在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆