在 ASP 页面中发出原始 html?

发布于 2024-12-12 11:21:32 字数 106 浏览 3 评论 0原文

这是非常令人恼火的。我只想简单地插入原始 html。我无法使用文字控制,因为无法忽略引号字符。我不想使用脚本元素,因为我将其添加到 ascx 文件中。我只想要原始 html 输出。没有这个操作员吗?

This is extremely aggravating. I just want to simply insert raw html. I can't use the literal control because there's no ignoring the quote character. I don't want to use a script element because I'm adding it in a ascx file. I just want raw html output. Is there no operater for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁许谁一生繁华 2024-12-19 11:21:34

我完全误解了你的意思,但是:

在经典 ASP 中,它是:

<%=("<div style=""color:red;"">html</div>")%>

输出:

<div style="color:red;">html</div>

I've properbly misunderstood you completely but:

In Classic ASP it is:

<%=("<div style=""color:red;"">html</div>")%>

output:

<div style="color:red;">html</div>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文