Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get querystring from URLReferrer

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 want to know if it is possible to do something like this Request.UrlReferrer.QueryString("SYSTEM")

like image 344
FarFigNewton Avatar asked Mar 25 '11 16:03

FarFigNewton


People also ask

What is request QueryString?

The value of Request. QueryString(parameter) is an array of all of the values of parameter that occur in QUERY_STRING. You can determine the number of values of a parameter by calling Request. QueryString(parameter).

What is the use of QueryString?

A querystring is a set of characters input to a computer or Web browser and sent to a query program to recover specific information from a database .


1 Answers

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") 
like image 167
Chris Mullins Avatar answered Sep 21 '22 16:09

Chris Mullins