2013-12-17 3 views
1

쿼리 문자열의 값을 응답 리디렉션에 추가하려고합니다. 아래에 코드를 추가했는데 도움이 될 것입니다.응답 리디렉션에 쿼리 문자열 추가 ASP VB.NET

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 

답변

1

은 당신이 사용할 때 발생합니다

Response.Redirect("http://mysite.co.uk/location/" & Request.QueryString("LOCATION")) 
1
Response.Redirect("Yourpage.aspx?UserId="+location);