由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Curious for VBSCRIPT in ASP file
相关主题
understand ASP.Net 1: ASP vs ASP.NetASP .Net Portal starter kit 怎么结构那么差
[合集] asp 打开oracle数据库问题。understand ASP .Net 3: why ASP .Net is faster
QA position at Rockville, MD怎么才能说服老板从php move到asp.net阿
JQuery and Master Pages用ASP .Net 和Python for .Net做了一个小范例
VBScript如何跟IE通信?embedded ASP tags?
Anyboday can help VBscript ?recommended ASP .NET books?
怎么显示中文?access database里显示没问题,读到网页是乱码asp.net问题急问(初级)
asp 打开oracle数据库问题。关于AppSettings Object in ASP .Net
相关话题的讨论汇总
话题: abc话题: page话题: asp话题: curious话题: vbscript
进入DotNet版参与讨论
1 (共1页)
i**p
发帖数: 902
1
This is an asp file.
<%
ABC = 10000
page = 1
if ( page >= ABC ) then
Response.write ("page is large than ABC")
else
Response.write ("page is less than ABC")
end if
%>
Tell me, what will you see after you run it?
y********o
发帖数: 2565
2
page is less than ABC
?

【在 i**p 的大作中提到】
: This is an asp file.
: <%
: ABC = 10000
: page = 1
: if ( page >= ABC ) then
: Response.write ("page is large than ABC")
: else
: Response.write ("page is less than ABC")
: end if
: %>

y********o
发帖数: 2565
3
I just gave it a shot. The output is
Page is less than ABC
Why are you curious about this?

【在 i**p 的大作中提到】
: This is an asp file.
: <%
: ABC = 10000
: page = 1
: if ( page >= ABC ) then
: Response.write ("page is large than ABC")
: else
: Response.write ("page is less than ABC")
: end if
: %>

i**p
发帖数: 902
4
My curiousness is my computer gave me another answer!

【在 y********o 的大作中提到】
: I just gave it a shot. The output is
: Page is less than ABC
: Why are you curious about this?

y********o
发帖数: 2565
5
What version is your asp engine?

【在 i**p 的大作中提到】
: My curiousness is my computer gave me another answer!
i**p
发帖数: 902
6
Sorry, my code is this. run it as http://localhost/test.asp?page=1
<%
abc = 10000
page = Request.QueryString("page")

if ( page >= abc ) then
Response.write(page & " > " & abc & "
")
else
Response.write("page is less than IND
")
end if
%>
I guess the problem is from page, which may be STRING. But how can I convert
it to number?

【在 y********o 的大作中提到】
: What version is your asp engine?
y********o
发帖数: 2565
7
myinteger = Cint(my_string_presentation_of_an_integer)

【在 i**p 的大作中提到】
: Sorry, my code is this. run it as http://localhost/test.asp?page=1
: <%
: abc = 10000
: page = Request.QueryString("page")
:
: if ( page >= abc ) then
: Response.write(page & " > " & abc & "
")
: else
: Response.write("page is less than IND
")
: end if

1 (共1页)
进入DotNet版参与讨论
相关主题
关于AppSettings Object in ASP .NetVBScript如何跟IE通信?
ASP.Net比ASP倒底好多少?Anyboday can help VBscript ?
请教NANT的一个问题怎么显示中文?access database里显示没问题,读到网页是乱码
.NET 新手 请教两个弱问题asp 打开oracle数据库问题。
understand ASP.Net 1: ASP vs ASP.NetASP .Net Portal starter kit 怎么结构那么差
[合集] asp 打开oracle数据库问题。understand ASP .Net 3: why ASP .Net is faster
QA position at Rockville, MD怎么才能说服老板从php move到asp.net阿
JQuery and Master Pages用ASP .Net 和Python for .Net做了一个小范例
相关话题的讨论汇总
话题: abc话题: page话题: asp话题: curious话题: vbscript