Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从使用 ASP 的服务器请求多个记录并使用单个 URL 将它们全部显示在页面上?说点什么http://foo.com/bar.asp?nums=1:2?这样一页加载两页信息?
http://foo.com/bar.asp?nums=1:2
您可以使用多个具有相同名称的查询字符串变量来执行此操作,例如:
http://foo.com/bar.asp?nums=1&nums=2
然后,在您的 asp 页面中:
<% for i=1 to Request.QueryString("nums").Count Response.Write(Request.QueryString("n")(i) & "<br>") 'obviously here, you would be querying your database next %>