开发者

Get querystring from URLReferrer

开发者 https://www.devze.com 2023-02-20 08:24 出处:网络
I am trying to get the QueryString value like this Request.QueryString(\"SYSTEM\") from a UrlReferrer. I see i can use this Request.UrlReferrer.Query() but it doesn\'t allow me to specify the exact pa

I am trying to get the QueryString value like this Request.QueryString("SYSTEM") from a UrlReferrer. I see i can use this Request.UrlReferrer.Query() but it doesn't allow me to specify the exact parameter

I could parse the Query() value, but I wa开发者_StackOverflownt to know if it is possible to do something like this Request.UrlReferrer.QueryString("SYSTEM")


You could do

HttpUtility.ParseQueryString(Request.UrlReferrer.Query)["SYSTEM"]

That is c# in vb is is probably something like

HttpUtility.ParseQueryString(Request.UrlReferrer.Query())("SYSTEM")


In VB.NET, one way to get the value of "SYSTEM" from the UrlReferrer is:

HttpUtility.ParseQueryString(Request.UrlReferrer.Query).GetValues("SYSTEM")(0)
0

精彩评论

暂无评论...
验证码 换一张
取 消