ASP中Response.Redirect("index.asp?username=变量")其中变量的格式?

来源:百度知道 编辑:UC知道 时间:2024/07/02 17:32:25
ASP中Response.Redirect("index.asp?username=变量")其中变量的格式?
这个自动跳转中,参数“username”携带的变量 是什么格式的呀?
比如“变量”是 login
下边的写法:
“变量”=login
“变量”='login'
“变量”='"&login&"'
我都试过了 传到的数都不是login的值,该怎么写呀?

Response.Redirect("index.asp?username=ssj") 不许要任何的引号如果是从变量中得到这个参数那就
Response.Redirect("index.asp?username=" & username)就行了如果是两个也是一样的Response.Redirect("index.asp?username=" & username & "&password=" & password)要传2个以上的参数用&分割

这样就行了

Response.Redirect("index.asp?username=" & login);