将查询字符串添加到 ASP VB.NET 的响应重定向

3

我正在尝试将查询字符串的值添加到响应重定向中。 我已经在下面添加了我的代码,任何帮助都将非常棒。

If Boolean.Parse(ConfigurationManager.AppSettings.Item("Development")) Then
            If Request.QueryString("ABC") = "Y" Then
                Session("Website") = "abc"
            End If  
            If Not Request.QueryString("LOCATION") = "" Then
                Response.Redirect "mysite.co.uk/location/" & Request.QueryString("LOCATION")
            End If          
        End If
2个回答

6
Response.Redirect("Yourpage.aspx?UserId="+location);

3
当你使用以下内容时会发生什么:
Response.Redirect("http://mysite.co.uk/location/" & Request.QueryString("LOCATION"))

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接