可以通过server.execute
传递参数吗?通过server.execute传递参数?
Fx。我在我的site.asp
中有一个IF方案,我需要执行functions.asp?a=something&id=123
。这可能吗?!
在site.asp:
dim id
id = 123
if b = "hi" then
server.execute("functions.asp?a=something&id=" & id)
else
response.write("No way dude")
end if
在functions.asp
a = request.querystring("a")
id = request.querystring("id")
if a = "something" and cint(id) > 100 then
response.write("Yes way dude")
else
response.write("No way dude")
end if
当你运行你的代码时会发生什么? –
Serverobject错误'ASP 0173:80004005'MapPath方法中参数路径中的字符无效---或者类似的,它在我的屏幕上是丹麦语:) – Behrens
如果没有查询字符串参数,那么会发生什么? –