mg7780和mg7580:ASP检查执行程序问题!

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 11:40:29
if request("x")="1" then
response.write "内容1"
elseif request("x")="2" then
response.write "内容2"
elseif request("x")="3" then
response.write "内容3"
else
response.write "内容4"
end if
================================================
不能在[内容]里执行ASP程序吗?
我试了
老是说我缺少语句
你们可以演示把X=1的页面显示注册X=2的页面写入注册的信息吗!这样子我会更明白些!

if request("x")="1" then
response.write "内容1"
Call S1
elseif request("x")="2" then
response.write "内容2"
Call S2
elseif request("x")="3" then
response.write "内容3"
Call S3
else
response.write "内容4"
Call S4
end if

Sub S1()
.....
End Sub
Sub S2()
......
End Sub
Sub S3()
.....
End Sub
Sub S4()
......
End Sub

在Sub里定义你要执行的代码即可

你说什么不能在内容里执行ASP的程序,你这段代码没有错误哦