经典ASP显示变量 [英] Classic ASP showing variable

查看:80
本文介绍了经典ASP显示变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想在页面上显示变量的结果,但我很挣扎

I just want to show a result of a variable on a page and i am struggling

这是我的代码,如您所见,该变量位于表中

heres my code, the variable is in a table as you can see

预先感谢

<tr><td><%
Dim sTest
sTest = "Monkey"
Response.Write("<p>" & sTest & "</p>")
%>
<p> This is Excel </p>
</td></tr>

推荐答案

将以下代码另存为HelloWorld.asp.在网络浏览器中打开此页面.告诉我们您看到了什么.

Save the below code as HelloWorld.asp. Open this page in a web browser. Tell us what you see.

(请勿放置任何html代码或其他任何内容)

(Don't put any html code or anything else)


<%
Dim sTest
sTest = "Hello World"
Response.Write(sTest)
Response.End
%>

这篇关于经典ASP显示变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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