2013-12-17 49 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);