asp.net mvc - get parameters from referrer -



asp.net mvc - get parameters from referrer -

is there easy way extract parameters of referrer url contained in request.urlreferrer? there way parameters used referrer?

query?blahid=3&name=blah

i refering getting blahid , name url. can done bunch of string manipulations, hoping there easier way.

use httputility.parsequerystring system.web. should work:

string blahid = string.empty; if(request.urlreferrer != null) { var q = httputility.parsequerystring(request.urlreferrer.query); blahid = q["blahid"]; }

asp.net-mvc

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -