【问题标题】:Get the parameter from the url of site using asp with vbscript使用带有vbscript的asp从站点的url获取参数
【发布时间】:2013-04-03 08:00:19
【问题描述】:

我有链接到asp页面的Jquery代码如下:

jQuery 代码:

var url = "script_right2.asp?soc="+societe+"&phoneNum="+phoneNumber+"&seleDro="+sedro+"&desc="+des;

我想获取societe,phoneNumber,seleDro,desc的值到页面script_right2.asp

但问题是我不知道如何使用 vbscript 在 asp 页面中获取这些数据。

【问题讨论】:

  • 你使用Request.QueryString("nameoffield")获取asp页面中查询字符串的值。你也可以使用Request("nameoffield")。你问的是这个吗?

标签: asp-classic vbscript


【解决方案1】:

我不知道问题是什么,所以我会回答两次!

使用 VBScript 复制您所拥有的:

dim stringUrl
stringUrl = "script_right2.asp?soc=" & societe & "&phoneNum=" & phoneNumber & "&seleDro=" & sedro & "&desc=" & des;

或者,如果你想从查询字符串中获取变量的值,你可以这样做

dim soc
dim phone
dim sedro
dim desc

soc = Request.QueryString("soc")
phone = Request.QueryString("phoneNum")
sedro = Request.QueryString("seleDro")
desc = Request.QueryString("desc")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-02
    • 2014-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多