【发布时间】:2016-12-16 03:04:11
【问题描述】:
在经典 ASP 中, 我可以像这样轻松地显示 HTML 内容:
<% if a=b then %>
<div>line 1 (a static content1 here)</div>
<div>line 2 (a static content2 here)div>
<div>line 3 (a static content3 here)</div>
<div>... (more than 10000 lines, no problem)</div>
<% end if %>
但是如何在 ASP.NET 中轻松做到这一点?
我可以使用 Response.Writeline 写一些代码
Response.writeLine("<div>Line 1</div>")
Response.writeLine("<div>Line 2</div>")
Response.writeLine("<div>Line 3</div>")
....
但是显示大内容太难了
【问题讨论】:
-
您使用的是restful服务吗?到目前为止,您尝试过什么?
标签: html asp.net vb.net asp-classic