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 %>
可能重复: <?= 是什么意思? Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641