Frage

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
War es hilfreich?

Lösung 2

What happens when you use:

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

Andere Tipps

Response.Redirect("Yourpage.aspx?UserId="+location);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top