Adding query string to response redirect ASP VB.NET

14,525

Solution 1

What happens when you use:

Response.Redirect("http://mysite.co.uk/location/" & Request.QueryString("LOCATION"))

Solution 2

Response.Redirect("Yourpage.aspx?UserId="+location);
Share:
14,525
huddds
Author by

huddds

Updated on June 05, 2022

Comments

  • huddds
    huddds almost 2 years

    I'm trying to add the value from my query string to a response redirect. I've added my code below, any help would be great.

    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