[英]Adding query string to response redirect 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
Response.Redirect("Yourpage.aspx?UserId="+location);
使用時會發生什么:
Response.Redirect("http://mysite.co.uk/location/" & Request.QueryString("LOCATION"))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.