I have to do a redirecttoaction call in asp.net mvc view with varying params, extracted from the referrer page of the view (the status of a grid).
I hav
To create a generic solution convert your querystring to a Dictionary and at the dictionary to the RouteValueDictionary.
var parsed = HttpUtility.ParseQueryString(temp);
Dictionary querystringDic = parsed.AllKeys
.ToDictionary(k => k, k => (object)parsed[k]);
return RedirectToAction("Index", new RouteValueDictionary(querystringDic));