Adding query string to response redirect ASP VB.NET

huddds picture huddds · Dec 17, 2013 · Viewed 13.6k times · Source

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

Answer

Vivekh picture Vivekh · Dec 17, 2013
Response.Redirect("Yourpage.aspx?UserId="+location);